commit | R Documentation |
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.
commit(commit_message, prepend)
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. |
No return value, called for side effects.
## Not run:
# Simple command to git add, git commit, and git push with a commit
# message based on git diff of the working directory
commit()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.