branch_name_lint 1.1.0 copy "branch_name_lint: ^1.1.0" to clipboard
branch_name_lint: ^1.1.0 copied to clipboard

A special tool to improve work with branches in teams

example/branch_name_lint_example.dart

import 'package:branch_name_lint/branch_name_lint.dart';

final config = Config.create(
  (dirsReader) => {
    'pattern': ':username:type/:desc/:issue',
    'params': {
      'type': ['feature', 'fix', 'misc', 'docs'],
      'username': ['[a-z-]+'],
      'desc': ['[a-z-]+'],
      'issue': ['lbn-[a-z0-9-]+'],
    },
    'allowed': ['test'],
    'prohibited': ['main', 'main', 'build', 'wip', 'ci', 'release'],
  },
);

void main() {
  print(config);
}
0
likes
160
points
160
downloads

Publisher

verified publisherserge.software

Weekly Downloads

A special tool to improve work with branches in teams

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, yaml

More

Packages that depend on branch_name_lint