A simple tool to suggest commit messages.
- Make sure you are using Python version >3.11
- This tool requires OPENAI API Key to work. Please see this
pip install porunga
- To see a list of commands availabe to use:
porunga --help
- To get information about a specific command , use:
porunga COMMAND --help
Example:
porunga set-env --help
- To set env variables, it is recommended to use set-env command
porunga set-env OPENAI_API_KEY=sk-....
You can set the following env variables that this tool uses:
OPENAI_API_KEY
: API key from OpenAIPORUNGA_MODEL_NAME
: Open AI Model to usePORUNGA_MODE
: Eithercost
orprecise
orbalanced
. It is recommended to precise for the best results
This CLI tool uses gpt-4o by default, which is recommended.
- To get suggestions
porunga suggest FILEPATH -n 2
This generates 2 suggestions for the particular uncommitted changes.
The results generated by this tool can be unpredictable and may produce inconsistent results. Users are advised to review and verify the suggestions before using them.