git-pr-ai
v1.13.4
Published
A tool to automatically extract JIRA ticket numbers from branch names and create GitHub/GitLab PRs
Maintainers
Readme
Git PR AI
A CLI tool that empowers developers to create GitHub Pull Requests faster and more efficiently with the help of AI.
git-pr-ai is a command-line tool designed to streamline the process of creating GitHub Pull Requests from JIRA tickets. By leveraging the power of AI, it can automatically generate branch names, PR descriptions, and even assist with code reviews, allowing you to focus on what truly matters: writing high-quality code.
Key Features
- AI-Powered Intelligence: Harness Claude Code, Gemini AI, Cursor Agent, or Codex to transform mundane git tasks into intelligent, context-aware workflows that understand your code and intentions.
- Smart JIRA Integration: Seamlessly bridge your project management and development workflow with automated branch creation and context extraction from tickets.
- Agent-Agnostic Simplicity: No need to rely on MCP or write custom prompts. Use the same intuitive commands to switch seamlessly between different AI Agents.
- Zero-Friction Setup: From installation to first PR in under 5 minutes - because your time is better spent coding, not configuring tools.
Prerequisites
Before you begin, please ensure you have completed the following setup:
- Platform CLI: Install and authenticate either GitHub CLI (
gh) or GitLab CLI (glab).- GitHub: Install GitHub CLI and run
gh auth login - GitLab: Install GitLab CLI and run
glab auth login
- GitHub: Install GitHub CLI and run
- AI Provider: Depending on your preference, set up access for one of the following AI providers:
- Claude Code - Anthropic's AI assistant
- Gemini CLI - Google's AI assistant
- Cursor Agent CLI - Cursor's AI assistant
- Codex CLI - Codex's AI assistant
- Need help choosing? Read the AI Providers guide.
Platform & AI Provider Support
| Platform | Claude Code | Gemini CLI | Cursor CLI | Codex CLI | | -------- | :---------: | :--------: | :--------: | :-------: | | GitHub | ✅ | ✅ | ✅ | ✅ | | GitLab | ✅ | ✅ | ✅ | ✅ |
All combinations of platforms and AI providers are fully supported!
Installation
pnpm add -g git-pr-aiQuick Start
After installing git-pr-ai, the CLI registers a suite of git subcommands (e.g., git pr-ai, git create-branch, git pr-review) so you can run everything directly from your terminal.
Configure the tool (required for git-pr-ai to fetch JIRA data):
# Set up your preferred AI provider (see AI Providers guide for options) git pr-ai configCreate a branch from a JIRA Ticket:
# Automatically generates semantic branch names from JIRA tickets git create-branch --jira PROJ-123No more inconsistent branch names or forgetting ticket details. Just paste your JIRA ID and get perfectly formatted branches every time.
Create AI-powered Commits:
# AI-generated commit messages based on your changes git ai-commitNo more generic commit messages. AI analyzes your changes and suggests 3 meaningful commit messages following conventional commit format. Pick the one that fits best!
Create a Pull Request:
# One-command PR creation with intelligent title formatting git open-prTransform your workflow from "commit → switch to browser → fill forms → copy URLs" to just "commit → one command → done!"
Update PR Description with AI:
# AI-powered PR descriptions that explain what changed and why git update-pr-descNever write another boring "fix bug" description. Get detailed, context-aware PR descriptions that help reviewers understand your changes instantly.
Review PR with AI:
# Instant AI code review with improvement suggestions git pr-reviewThink of it as having a senior developer review your code 24/7. Catch bugs early, improve code quality, and learn best practices automatically.
Generate Weekly Summary:
# AI-generated weekly summaries for standups and reviews git weekly-summaryStop scrambling to remember what you worked on this week. Get AI-generated summaries that highlight your impact and achievements automatically.
Documentation
Want to learn more about detailed configurations and features?
Please refer to our full documentation.
