Skip to content
git-pull-request

GitHub Action

Commit Meaning

0.2.3 Latest version

Commit Meaning

git-pull-request

Commit Meaning

In a paragraph, describe the commits for a PR

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Commit Meaning

uses: Tincre/commit-meaning@0.2.3

Learn more about this action in Tincre/commit-meaning

Choose a version

commit-meaning

Extract meaning from your verbose git commits into a succinct paragraph within your pull requests.

Simply add this as a step in your CI/CD process and your PRs will be annotated with a single paragraph describing the git commits involved.

Inputs

OPENAI_API_KEY

Required An environment variable containing your OpenAI api key.

GITHUB_TOKEN

Required Your Github token with read/write permissions.

OPENAI_ORG

Required Your OpenAI organization id.

Example usage

uses: actions/commit-meaning
with:
  openai-api-key: "$OPENAI_API_KEY"
  openai-org: "$OPENAI_ORG"
  github-token: "$GITHUB_TOKEN"

Options

You can fully customize the behavior of this action.

  • temperature: The OpenAI temperature parameter
  • tokens: The OpenAI tokens paremter (number of tokens)
  • frequency-penalty: The OpenAI frequency_penalty parameter
  • presence-penalty: The OpenAI presence_penalty parameter
  • prompt-instructions: Additional input instructions for the prompt

Default prompt-instructions

We employ the use of gitmoji at Tincre to annotate our commit messages with rich categorization.

This action by default uses the following prompt by default:

  • 🐞 and 🐛 "refers to a bug fix"
  • ♻️ "means to refactor code or content"
  • ✨ "means something is new in the code"
  • 🔧 "refers to code that is configuration or low-level in nature"
  • 🔥 "means to remove code or remove content"
  • 🚧 "references a commit considered to be work in-progress", and
  • 📓 "references changes to documentation."

Contributions

We ❤️ contributions! File an issue, PR, or suggestion to improve this action.

License

This action is liberally licensed under the MIT license.

And we at Tincre would love attribution, if you feel so inclined.