This PR updates the git autocommit command by removing the confirmation prompt and instead committing the message returned by OpenAI directly. To give the opportunity to developer to update the message, it then executes git commit --amend immediately for the developer to update the commit.
The new behavior had been tested by dogfooding on the development branch itself.
Resolves #21 .
In addition:
This PR adds a call to main() function in cli_handler.py so that the code can be run using python -m command on the command prompt.
This PR removes an unused variable in sgit.setup_args.
This PR updates the
git autocommit
command by removing the confirmation prompt and instead committing the message returned by OpenAI directly. To give the opportunity to developer to update the message, it then executesgit commit --amend
immediately for the developer to update the commit.The new behavior had been tested by dogfooding on the development branch itself.
Resolves #21 .
In addition:
main()
function incli_handler.py
so that the code can be run usingpython -m
command on the command prompt.