feat: support using delimiter in scope-enum#4161
feat: support using delimiter in scope-enum#4161escapedcat merged 2 commits intoconventional-changelog:masterfrom
scope-enum#4161Conversation
|
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?
multipleSlashtest case is added.foo/bartoscope-enumwould work.Types of changes
Checklist: