- Python 3.10+
- poetry
- OpenAI API key
You can get the OpenAI API key from here.
Our python code in src/config_parser.py:
GPT_TOKENS = tuple(os.environ.get('GPT_TOKENS', '').replace(
';', ',').replace(':', ',').split(','))
So, you can set the environment variable GPT_TOKENS
to your OpenAI API keys.
Or you could just insert your API key to the GPT_TOKENS
config file (~/.cg/config.json).
Linux:
./cg.elf
Before we publish this tool to the package manager, you could use this command to link the binary to
/usr/local/bin/cg
:sudo ln -s ./cg.elf /usr/local/bin/cg
Mac:
./cg.macho
Windows:
.\cg.exe
$ poetry install
$ poetry run python ./main.py
- Benchmark with other famous commit message generator
- Smarter prompt for commit message
- Use score to measure the quality of the commit message
- Binary for Windows, Linux, and Mac
- Tests and CI
- Publish to PyPI, Homebrew, AUR, and scoop
GPLv3