action-semantic-pull-request
action-semantic-pull-request copied to clipboard
`requireScope` for only select types
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.