carloscuesta / gitmoji-cli

A gitmoji interactive cli tool for using emojis on commits. 💻
https://www.npmjs.com/package/gitmoji-cli
MIT License
4.59k stars 206 forks source link

Introduce AI generated messages #1069

Closed segersniels closed 7 months ago

segersniels commented 1 year ago

Description of the problem

Sometimes you find yourself unable to find a fitting commit message.

Solution

  1. Utilising the OpenAI API gitmoji could generate fitting commit messages based on the diff of the staged changes.
  2. Check for a configured OPENAI_API_KEY

Alternatives

https://github.com/segersniels/gitmoji https://genmoji.xyz

I added support to @segersniels/gitmoji based on my original implementation of genmoji.xyz through gitmoji commit --generate with the option to provide additional context gitmoji commit --generate --context.

Additional context

No response

Validations

carloscuesta commented 1 year ago

Hey!

Thanks for opening the issue, I believe it can be a great addition into the cli 😊

I don't have a lot of time now so if you want to raise a Pull-Request I would be more than happy to review it 😊

segersniels commented 1 year ago

Closed the PR but keeping this issue open to see if people have general interest in a feature like this.