Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Prefix commit messages with branch name #318

Open
SimonHoiberg opened this issue Feb 20, 2020 · 1 comment
Open

Feature: Prefix commit messages with branch name #318

SimonHoiberg opened this issue Feb 20, 2020 · 1 comment

Comments

@SimonHoiberg
Copy link

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".

@groenborg
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants