Skip to content

GitHub Workflow that uses AI to re-write commit messages based on existing message and diff contents.

License

Notifications You must be signed in to change notification settings

drewbroadley/ai-github-summarising-commits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Workflow - AI Github Summarising Commits (amend)

A simple approach to re-writing the Summary and Description of a Github commit using AI.

This is very helpful when you have a large number of commits and you want to summarise them in a more human readable format, or are a solo developer that wants to ensure things are documented well.

For an example - see my commit history.

Prerequisites

  • Github Workflow
  • API Key for either Claude AI, Google Gemini or OpenAI

Getting Started

  • Add the appropriate API Key to your Github repository secrets:
    • ANTHROPIC_API_KEY for Claude AI
    • GOOGLE_API_KEY for Google Gemini
    • OPENAI_API_KEY for OpenAI
  • Create a new Github Workflow folder in your repository: .github/workflows
  • Copy the appropriate commit-ai-summarise.yml file this folder
  • Commit and push the changes to your repository

Watch the magic happen .oO(✨)

Use Cases

  • Ensures a projects commit history is well documented
  • Build consistent style of commit messages across your organization
  • If you are a solo developer, ensure that you have a good summary of your work

Author

Drew Broadley [email protected]

License

This project is licensed under the MIT License - see the LICENSE file for details

About

GitHub Workflow that uses AI to re-write commit messages based on existing message and diff contents.

Topics

Resources

License

Stars

Watchers

Forks