Closed guibranco closed 1 week ago
Hey, I'm a bit lost here! Not sure which file I should be fixing. Could you give me a bit more to go on? Maybe add some details to the issue or drop a comment with some extra hints? Thanks!
Have feedback or need help? Feel free to email info@gitauto.ai.
Description:
The code should detect and preserve existing version bump patterns in the commit message. Currently, these commands may be stripped out, but they should remain intact in the final commit message.
For example, in the following commit message:
The
+semver: minor
should be detected and kept at the end of the final commit message.Accepted Patterns:
The following patterns should be detected and preserved in the commit message:
Major Version Bump:
Minor Version Bump:
Patch Version Bump:
No Version Bump:
Expected Behavior:
The tool should detect the version bump command (if present) and ensure it is preserved at the end of the final commit message.
Example Code for Pattern Detection and Preservation:
How It Works:
semverPattern
matches any of the accepted version bump commands (+semver: breaking
,+semver: feature
, etc.).Notes:
This feature will ensure that valid version bump commands are always preserved in the final commit message, allowing seamless versioning integration.