commitgpt

Automatically generate commit messages using ChatGPT.

About commitgpt

commitgpt

How to use?

npx commitgpt

or use -c for conventional commits format.

npx commitgpt -c

On the first run you will be asked to enter your OpenAI session token.

Get your session token

  1. Go to https://chat.openai.com/chat and log in or sign up.
  2. Open console with F12.
  3. Open Application > Cookies. image
  4. Copy the value for __Secure-next-auth.session-token and paste it into the terminal prompt.

How it works

  • Runs git diff --cached
  • Sends the diff to ChatGPT and asks it to suggest commit messages
  • Shows suggestions to the user

Source: https://github.com/RomanHotsiy/commitgpt

Ready to start building?

At Apideck we're building the world's biggest API network. Discover and integrate over 12,000 APIs.

Check out the API Tracker