-
Notifications
You must be signed in to change notification settings - Fork 934
Rule does not work with #ids #3615
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
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
@escapedcat my issue is commitlint is not throwing any error and accepts it as valid commit message :( |
This comment was marked as off-topic.
This comment was marked as off-topic.
Ooohhhh, I see. I assume commitlint thinks this is a commented out sentence as does not lint it. |
Oh that was not expected :( is there a work around or will this be treated as bug? The same rule works when we run |
Uhm, nor sure. I remember there were some adjustments regarding comments in the commit-body. Would be good to have a look what was done there and if this also caused this. |
Thank you @escapedcat for your quick replies. I will continue with current setup hopefully we get a fix for this in near future :) |
Only if someone is motivated to take care of it :P |
May I offer my assistance with this Git issue, despite being new to open source? I have recently reviewed this codebase to implement custom issue prefixes. I think i might be able to help with some guidance. |
@kamathgopal which commitlint version are you using? I just tried this with current master echo "#123 - test commit" | ./@commitlint/cli/cli.js
⧗ input: #123 - test commit
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
✖ found 2 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint Update: Would be nice to have the same behaviour when running |
@escapedcat thanks, I am using the version 17.6.5. |
I was trying this utility in my project as we are planning to enforce conventional commit messages. It works nicely but I was pleasantly surprised when it started failing miserably. When I tried to commit with messages like
git commit -m "#123 - test commit"
it does not throw any error. However when I runcommitlint --from=HEAD~1
it shows error.This is causing issues as the team is accustomed to
#ticket-id - message
pattern.The text was updated successfully, but these errors were encountered: