opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Feature]:Improving GitHub Actions: Preventing Improper Overwrites of Commit Messages

Open miura-toshihiko opened this issue 1 year ago • 1 comments

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}

miura-toshihiko avatar Feb 08 '24 06:02 miura-toshihiko

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

di-sukharev avatar Mar 03 '24 11:03 di-sukharev