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
CommitValidationTest fails on revert commits #12766
Comments
Reverts should be excluded from validation. I thought we already had support for this. |
On it, |
So the check regex would be Take for example the commit message
and the code that checks it checkstyle/src/test/java/com/puppycrawl/tools/checkstyle/internal/CommitValidationTest.java Lines 204 to 231 in bbfa7fb
Problem is that it violates second( Shall we just this at the end of the file to work around all of this? if (message.matches(REVERT_COMMIT_MESSAGE_REGEX_PATTERN)) {
result = 0;
} |
Yes, if it is revert commit, no more validation should be applied. |
Commit: 26cadbb
Message:
Revert "doc: release notes for 10.8.0"
Pipeline fail: https://dev.azure.com/romanivanovjr/romanivanovjr/_build/results?buildId=13264&view=logs&j=c902ebb4-c9f8-5f09-4e17-ff78fbbc842e&t=9ca98c81-ff64-58f0-9d03-a23ac1c4a111&l=795
The text was updated successfully, but these errors were encountered: