1.1.6 • Published 1 year ago

@w3tsadev/commitbot v1.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Installation and Usage

Simply install the tool with npm, set your OpenAI key and add it as an env variable with the two commands below.

  1. npm install -g @w3tsadev/commitbot
  2. export OPENAI_KEY=sk-xxxxxxxxxxxxxxxx

To ensure persistence, we recommend adding your OpenAI key as an environment variable in your .zshrc or .bashrc on line #2 file. Once configured, generating a commit message is as easy as running the commitbot command.

Note: If you get a EACCESS error on mac/linux when running the first command, try running it with sudo npm install -g @w3tsadev/commitbot.

How it works

CommitBot uses OpenAI's GPT-3 to generate commit messages by analyzing your git diff. Please note that GPT-3 generations are not free, however, OpenAI offers $18 worth of free credits and commit message generations are cheap, making CommitBot an affordable solution.

Limitations

At present, CommitBot supports Git diffs of up to 200 lines of code and does not support conventional commits. However, version 2 of the CLI, set to release soon, will address these limitations, adding new features such as the ability to troubleshoot OpenAI responses, enable conventional commits as a flag, support diffs greater than 200 lines, and more.

Future tasks

As I continue to improve CommitBot, I am excited to offer an upcoming video tutorial that demonstrates how to easily build your own CLI tools powered by AI. Keep an eye out for the 2.0 launch and stay up to date on all the latest features.

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago