$ deno install --allow-env --allow-run --allow-net --allow-read --allow-write https://deno.land/x/commit_genius/cg.ts
✅ Successfully installed cg
$ cg --version
cg v0.1.0
$ cg upgrade
$ deno uninstall cg
$ rm -rf ~/.config/commit_genius # if any config file
$ export OPENAI_ACCESS_TOKEN=sk-HogehogeXXX
$ # or
$ cg config set api_key sk-HogehogeXXX
$ git add .
$ cg
Possible commit message suggestions:
- Fixed bug in getCommitMessageSuggestion function (getCommitMessageSuggestion関数中のバグを修正)
- Added feature X to component Y (コンポーネントYに機能Xを追加した)
- Refactored function Z for improved performance (機能Zのリファクタリングによるパフォーマンス改善)
$ cg config set api_key sk-HogehogeXXX
$ cg config get api_key
sk-HogehogeXXX
$ cg config list
api_key = sk-HogehogeXXX
Key | Description |
---|---|
api_key | API key used for authentication with OpenAI |
model | model name for OpenAI (e.g., gpt-3.5-turbo , gpt-4 ) |
The source code is licensed MIT.