Skip to content

๐ŸŽฏ A smart Git workflow assistant that helps standardize commit messages and PR descriptions using conventional commit format and AI-powered suggestions.

License

Notifications You must be signed in to change notification settings

porameht/git-relax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

35 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Git-Relax ๐Ÿš€

A smart Git workflow assistant that standardizes commit messages and pull request descriptions using AI-powered suggestions and conventional commit formats.

๐ŸŒŸ Features

  • Intelligent Commit Messages: Generate well-formatted commits following industry standards
  • AI-Powered PR Creation: Automatically craft meaningful pull request titles and descriptions
  • Flexible Message Formats:
    • Conventional commit format support
    • Long-form and concise message options
    • Customizable prompts for different team needs

๐Ÿ”ง Prerequisites

Ensure the following tools are installed:

  • Git
  • GitHub CLI (gh)
  • Gum
  • Mods (AI command-line tool)
  • OpenAI API Key

Installation Steps

  1. Install Required Tools
# macOS (using Homebrew)
brew install gh
brew install charmbracelet/tap/mods
brew install gum
  1. Set Up OpenAI API Key
  • Create an account at OpenAI
  • Generate an API key
  • Set the environment variable:
export OPENAI_API_KEY='your_openai_api_key'
  1. Clone and Install Git-Relax
git clone https://github.com/yourusername/git-relax.git
cd git-relax
./install.sh
  1. Add to PATH
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc
# Or for zsh users
echo 'export PATH=$PATH:~/.local/bin' >> ~/.zshrc

๐ŸŽฎ Usage

Commit Messages

git-relax commit

Create Pull Requests

git-relax pr

๐Ÿ›  Customization

Commit Message Types

  • fix: Bug fixes and patches
  • feat: New features
  • build: Build system changes
  • chore: Maintenance tasks
  • ci: CI configuration updates
  • docs: Documentation improvements
  • style: Code style modifications
  • refactor: Code restructuring
  • perf: Performance enhancements
  • test: Test-related changes

๐Ÿ“‹ Pull Request Template

Generated PRs follow a structured format:

  • Problems addressed
  • Solution approach
  • Implementation details
  • Testing steps
  • Dependency changes
  • Deployment notes

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit using git-relax commit
  4. Push your changes
  5. Create PR using git-relax pr

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Inspired by conventional commit standards
  • Built for developer productivity
  • Community-driven development

About

๐ŸŽฏ A smart Git workflow assistant that helps standardize commit messages and PR descriptions using conventional commit format and AI-powered suggestions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages