Skip to content

Repository files navigation

Commit Genius

releasecirelease

Installation

Install

$ 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

Upgrade

$ cg upgrade

Uninstall

$ deno uninstall cg
$ rm -rf ~/.config/commit_genius # if any config file

Usage

$ 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 functionZfor improved performance (機能Zのリファクタリングによるパフォーマンス改善)

Configure

Update configuration with a value for the given key

$ cg config set api_key sk-HogehogeXXX

Print the value of a given configuration key

$ cg config get api_key
sk-HogehogeXXX

Print a list of configuration keys and values

$ cg config list
api_key = sk-HogehogeXXX
KeyDescription
api_keyAPI key used for authentication with OpenAI
modelmodel name for OpenAI (e.g., gpt-3.5-turbo, gpt-4)

License

The source code is licensed MIT.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages