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

Allow for custom prefix for the commit message #111

Open
aslakhol opened this issue Feb 23, 2023 · 6 comments · May be fixed by #113
Open

Allow for custom prefix for the commit message #111

aslakhol opened this issue Feb 23, 2023 · 6 comments · May be fixed by #113
Labels
feature New feature or request pr welcome

Comments

@aslakhol
Copy link

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 message web: <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.

@aslakhol aslakhol changed the title Allow for custom preface for the commit message Allow for custom prefix for the commit message Feb 24, 2023
@aslakhol aslakhol linked a pull request Feb 24, 2023 that will close this issue
@privatenumber privatenumber added feature New feature or request pending triage labels Mar 4, 2023
@ghost
Copy link

ghost commented Mar 16, 2023

I'd also welcome this feature but for adding JIRA ticket references 😄

@mreduar
Copy link

mreduar commented Apr 30, 2023

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.

@ghost
Copy link

ghost commented May 23, 2023

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.

@mreduar
Copy link

mreduar commented May 23, 2023

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.

@DanielWeidensdoerfer
Copy link

DanielWeidensdoerfer commented Aug 4, 2023

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

@tchenu
Copy link

tchenu commented Aug 15, 2024

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

tchenu@82dabdc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request pr welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants