Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requireScope for only select types #238

Open
sehilyi opened this issue Aug 14, 2023 · 0 comments
Open

requireScope for only select types #238

sehilyi opened this issue Aug 14, 2023 · 0 comments

Comments

@sehilyi
Copy link

sehilyi commented Aug 14, 2023

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 sehilyi changed the title requireScope for only select types requireScope for only select types Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant