git-phlow icon indicating copy to clipboard operation
git-phlow copied to clipboard

Feature: Prefix commit messages with branch name

Open SimonHoiberg opened this issue 5 years ago • 1 comments

Feature request

The ability to configure a prefix for the commit message, such that git phlow commit -m "some commit message" will add the commit message "My-prefix: some commit message".

I imagine there could be 3 different configurations:

1. Prefix with branch name

With this configuration, my branch name automatically gets prefixed to the commit message.
Example:
git phlow commit -m "some message" -> "feature/login: some message".

2. Prefix with issue name

With this configuration, the issue name from the current "workon" gets prefixed. Example:
git phlow commit -m "some message" -> "create-login-screen: some message".

3. Prefix with custom message

With this configuration, a specified custom message gets prefixed to the commit message.
Example:
git phlow commit -m "some message" -> "custom-prefix: some message".

SimonHoiberg avatar Feb 20 '20 11:02 SimonHoiberg

Hello @Silind
Thanks for the feedback, it is much appreciated. Let us clarify the feature and consider some options.

groenborg avatar Feb 20 '20 20:02 groenborg