-
Notifications
You must be signed in to change notification settings - Fork 914
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
feat: support using delimiter in scope-enum
#4161
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
lgtm, thanks! @knocte wdyt? |
LGTM but I would prefer if the contributor:
This way we make sure the bug is really being fixed. |
Hi @knocte @escapedcat, I created a PR at colinaaa#1 to do what you said. It shows that the tests if failing without the source code changes:
And the test passed after I made this changes:
PTAL~ |
Why did you create a PR on your fork? You just need to put those commits in this PR. |
Because I cannot run the action in this PR. As you can see now, GitHub says:
|
lgtm! thanks! |
Thanks for splitting in 2 commits. The CI of your 2nd commit is red, why? |
I think it's "a bug" in Github? It's green here: b589391 And here if you click the red X: https://github.com/conventional-changelog/commitlint/pull/4161/commits |
We probably should only enable that step if CI is running in a repo that is not a fork, I guess. |
Yeah, this is a bit confusing. Apart from this I guess we're good here. Thanks @colinaaa ! |
Description
Currently, if the scope in message has delimiters(
/
,,
or\
), it is considered as multiple scopes and is tested separately.I add extra checks to see if the scope matches the enum directly to allow
'scope-enum'
to have delimiter.Motivation and Context
Scope should be able to have delimiter like
/
. And tests should pass when'scope-enum'
is configured to have delimiter.Usage examples
How Has This Been Tested?
multipleSlash
test case is added.foo/bar
toscope-enum
would work.Types of changes
Checklist: