action-semantic-pull-request icon indicating copy to clipboard operation
action-semantic-pull-request copied to clipboard

`requireScope` for only select types

Open sehilyi opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Is it possible to require a scope(s) for select types and disallow for others? I have the following spec, and we want to force people to use scopes, for example, with feat but not with ci.

          requireScope: true
          disallowScopes: |
            ci
            chore
            docs
            refactor
            test

Should be okay:

feat(scope1): message
ci: message

Shouldn't be okay:

feat: message
ci(core): message

Describe the solution you'd like

When disallowScopes is specified, requireScope should not force to use scopes for given types.

Describe alternatives you've considered

Any workaround would be appreciated.

sehilyi avatar Aug 14 '23 19:08 sehilyi