mirror of
https://github.com/conventional-commits/conventionalcommits.org.git
synced 2026-03-22 12:44:37 -05:00
Regex to validate the commit message #173
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JobaDiniz on GitHub (Apr 28, 2023).
I did not know there was a conventional commit org! I was using my own conventional very similar borrowed from years ago somewhere.
Is there a regex that we can to check the commit message pattern following the conventional rules?
For example, I have this github action which uses gsactions/commit-message-checker@v2.
@damianopetrungaro commented on GitHub (Apr 29, 2023):
Hey! There is this GitHub action I use often: https://github.com/webiny/action-conventional-commits
Do you think would that work for your use case?
@JobaDiniz commented on GitHub (Apr 29, 2023):
That's even better!
@thekaveman commented on GitHub (Aug 14, 2023):
There's also a
pre-commithook you can add for validating commit messages at commit time: https://github.com/compilerla/conventional-pre-commitDisclaimer: My company is the author of this hook.