commit: Commit changes using an auto-generated commit message
Description
An R wrapper to automatically add, commit, and push changes
to a git repository using an auto-generated commit message. The commit
message is generated by an API call to the 'OpenAI' 'GPT-3.5 Turbo' model
using the git diff output as input.
Usage
commit(commit_message, prepend)
Value
No return value, called for side effects.
Arguments
commit_message
A custom commit message. If not provided, a message
will be generated automatically.
prepend
A string to prepend to the commit message. Defaults to an
empty string. A convention may
be to prepend 'GPT: ' to the beginning of the commit message so you can
differentiate between those you wrote vs those GPT composed.