opencommit
opencommit copied to clipboard
[Feature]:Improving GitHub Actions: Preventing Improper Overwrites of Commit Messages
When using open commit in GitHub Actions, there is a problem that commit messages can be overwritten even if they are already correctly written.
So, we've added a new feature that allows you to set conditions for commit messages that should not be overwritten inappropriately (e.g., unusually short).
Added the ability to define illegal commit messages with regular expressions. This logic works only with GitHub Actions.
The default condition is to use open comit only for very short commit messages as follows
OCO_INVALID_COMMIT_TITLE_REGEX: ^. {0,5} OCO_INVALID_COMMIT_DESCRIPTION_REGEX: ^. {0,5}
how does it overwrite commit messages that were already improved? i remember writing code that improves only new commit message, it shouldn't touch already improved messages. i think we can come up with a better implementation