Skip to content

Instantly share code, notes, and snippets.

View kjaymiller's full-sized avatar
🤔

Jay Miller kjaymiller

🤔
View GitHub Profile
@kjaymiller
kjaymiller / README.md
Created February 15, 2023 18:27 — forked from crazy4pi314/README.md
OpenAI assisted git commit msg

How to use:

  1. Make sure you have your OpenAI API key set as an environment variable (OPENAI_API_KEY)
  2. Set up the pre-commit message prep hook bu adding the other two files here in the ./git/hooksdirectory.

Test using it by staging some changes to commit and then running git commit in the command line. The file it pops up for you to edit now should have the suggested summary of the changes from the OpenAI api commented out like this:

# Here is a suggested commit message from code-davinci-002.
# ---

A CLI for Bunch.app by Brett Terpstra

Save the file below as bunch in your path. Run bunch -h for help.

CLI for Bunch.app
    -h, --help                       Display this screen
    -l, --list                       List available Bunches
    -o, --open                       Open Bunch ignoring "Toggle Bunches" preference
 -c, --close Close Bunch ignoring "Toggle Bunches" preference