A gh CLI extension that generates Conventional Commit messages and bodies automatically using GitHub Models AI.
- 🎯 AI-generated commits using GitHub Models (
gh models) - 📝 Conventional Commits format (feat, fix, docs, etc.)
- 🌍 Multi-language support (English, Spanish, and more)
- 🔍 Dry-run mode to preview commits before creating them
- 🚀 Auto-push option after committing
gh extension install svg153/gh-copmitPrerequisites:
- GitHub CLI authenticated
gh modelsextension (auto-installed with--yesflag)jq(optional, for robust JSON parsing)
# Show help
gh copmit --help
# Stage all changes and create commit (English, default model)
gh copmit --all
# Preview commit message (dry-run)
gh copmit --all --dry-run
# Create commit in Spanish
gh copmit --all --lang es
# Create commit and push
gh copmit --all --pushgh-copmit.sh- Main extension script that generates AI-powered commit messages.gitignore- Git ignore rules for the project
For additional scripts, documentation, and examples, check the local repository or future releases.
Local installation for development:
ln -s $(pwd) ~/.local/share/gh/extensions/gh-copmitContributions are welcome! Please feel free to submit a Pull Request.
- Built with GitHub CLI
- Powered by GitHub Models
- Follows Conventional Commits specification
If you find this extension useful, consider giving it a ⭐ on GitHub!