opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Feature]: Branch Naming Integration for Enhanced Commit Messages in OpenCommit

Open JonasWijne opened this issue 2 years ago • 3 comments

Description

integrate branch naming conventions into the commit message generation process. Users frequently use branch names like feature/{ticketnumber}-normal-branch-name in their version control workflows. However, they have to manually include the ticket number in their commit messages, which can be tedious and error-prone.

Suggested Solution

Implement a new feature that allows for automatic extraction of ticket numbers from branch names. When a branch is named in a specific format (e.g., feature/{ticketnumber}-normal-branch-name), OpenCommit should detect the ticket number and prepend or append it to the commit message, formatted as ticket: {ticketnumber}. This functionality would significantly streamline the commit process, reduce manual errors, and improve efficiency. The implementation should be flexible to accommodate different branch naming conventions and should be easily configurable through the existing settings. Additionally, offering an option to toggle this feature on or off per repository basis would provide users with greater control and customization.

Alternatives

No response

Additional Context

No response

JonasWijne avatar Nov 06 '23 09:11 JonasWijne

Stale issue message

github-actions[bot] avatar Dec 16 '23 21:12 github-actions[bot]

reopening, will take a look at this

di-sukharev avatar Feb 28 '24 06:02 di-sukharev

This would be super handy

seanmccabe avatar Jun 06 '24 03:06 seanmccabe