Skip to content

svg153/gh-copmit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-copmit

Latest Release License gh extension

🤖 AI-powered Conventional Commits using GitHub Models

A gh CLI extension that generates Conventional Commit messages and bodies automatically using GitHub Models AI.


✨ Features

  • 🎯 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

📦 Installation

gh extension install svg153/gh-copmit

Prerequisites:

  • GitHub CLI authenticated
  • gh models extension (auto-installed with --yes flag)
  • jq (optional, for robust JSON parsing)

🚀 Usage

# 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 --push

📁 Repository Files

  • gh-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.

🔧 Development

Local installation for development:

ln -s $(pwd) ~/.local/share/gh/extensions/gh-copmit

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

🙏 Acknowledgments


If you find this extension useful, consider giving it a ⭐ on GitHub!