-
Notifications
You must be signed in to change notification settings - Fork 382
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
Allow for custom prefix for the commit message #111
Comments
I'd also welcome this feature but for adding JIRA ticket references 😄 |
That's exactly why I came here, without this feature I can't use this tool as such, I would only have to copy the text and do the commit myself manually. |
The workaround I'm doing is that I add the Jira ticket prefix manually. In my case, the installed hook opens nano for commit message editing and I can add the jira ticket there. |
There is a PR #113 that could solve the problem for many. But there doesn't seem to be much activity from the maintainers. |
Meanwhile this is getting implemented. You can create a git hook that reads the ticket number of a jira ticket from the branch and prefixes every commit message. https://betterprogramming.pub/how-to-automatically-add-the-ticket-number-in-git-commit-message-bda5426ded05 |
|
It would be great to have a flag
-p
or--prefix
that would take an argument that would be prefixed into the final commit message.aicommits -p web:
would yield this commit messageweb: <commit message generated by aicommits>
Why?
For monorepos it can be useful to prefix commits the name of the project you are working on. It would also allow us to make it possible to use semantic commits before we get that generated by GPT, while being more versatile.
The text was updated successfully, but these errors were encountered: