b12k/branch-name-lint

Allow push to develop and regular branches

martinib77 opened this issue · 0 comments

If i want to allow push to develop branch, how can i configure the regular expression?.

i'm using

module.exports = {
  pattern: ':type/:user/:month/:name',
  params: {
    type: ['feature', 'fix', 'docs', 'misc', 'improve', 'introduce'],
    user: ['[a-z0-9-]+\\.[a-z0-9-]+'],
    month: ['\\d{4}-\\d{2}'],
    name: ['[a-z0-9-]+']
  },
  prohibited: ['ci', 'wip', 'main', 'test', 'build', 'master', 'release']
};

Thanks