Nutlope / aicommits

A CLI that writes your git commit messages for you with AI

Home Page:https://www.npmjs.com/package/aicommits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customize generated commit message

ekalchev opened this issue · comments

Feature request

We have custom commit message pattern build on top of conventional commits. Please tell me where in the code I can add instructions to the AI service to append some additional information for the first line of the commit message. I would do it myself, I just need direction where is the right place in the code to add this.

Why?

We have custom commit message pattern

Alternatives

No response

Additional context

No response

You can edit here

conventional: `Choose a type from the type-to-description JSON below that best describes the git diff:\n${JSON.stringify(
{
docs: 'Documentation only changes',
style:
'Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
refactor: 'A code change that neither fixes a bug nor adds a feature',
perf: 'A code change that improves performance',
test: 'Adding missing tests or correcting existing tests',
build: 'Changes that affect the build system or external dependencies',
ci: 'Changes to our CI configuration files and scripts',
chore: "Other changes that don't modify src or test files",
revert: 'Reverts a previous commit',
feat: 'A new feature',
fix: 'A bug fix',
},