branch_name_lint 1.0.0 copy "branch_name_lint: ^1.0.0" to clipboard
branch_name_lint: ^1.0.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': [
        'master',
        'main',
        'build',
        'wip',
        'ci',
        'release',
      ],
    });

void main() {
  print(config);
}
copied to clipboard
0
likes
160
points
33
downloads

Publisher

verified publisherserge.software

Weekly Downloads

2024.09.11 - 2025.03.26

A special tool to improve work with branches in teams

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

yaml

More

Packages that depend on branch_name_lint