-
Notifications
You must be signed in to change notification settings - Fork 27
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
bug: convco commit
allows invalid scopes
#145
Comments
I suspect it might be this regex that would have to be changed convco/src/conventional/commits.rs Line 240 in 81f59f1
|
AFK. But this regex does not allow spaces, but maybe needs to have a start You could change the regex in the config file. The regex is allowing dashes, slashes and underscores, but not spaces. |
Would you want me to PR this or just fix it locally? |
A PR is nice, I can confirm that it is the issue, but a local fix will be faster, unless you build your own binary from it.
|
@cafkafk I did create a PR, if the checks are green I will merge this soon. But I won't have the time to create a release this week. |
@hdevalke any chance you're planning to cut a release with this fix soon? It would be nice to include this fix in nixpkgs without going to an unstable version. |
I will release it this evening. |
@Hoverbear v0.4.3 has been released. |
Thanks so much! |
Describe the bug
convco commit
allows committing with an invalid scope.From conventional commits:
To Reproduce
not relevant
Expected behavior
Convco should not allow spaces in scopes, as that would make the scope not a noun which it MUST be.
System (please complete the following information):
not relevant
Additional context
None I can think of.
The text was updated successfully, but these errors were encountered: