MergeMate
AI-powered pull request review and automation.
MergeMate automates code review workflows by providing AI-generated feedback, suggestions, and documentation for pull requests. It integrates with major git providers and supports multiple AI models.
Why MergeMate?
- Fast & Efficient: Each tool (
/review,/improve,/ask) uses a single LLM call - Handles Any PR Size: Built-in compression strategy processes both small and large PRs
- Highly Customizable: Configuration-driven behavior via
.mergemate.toml - Platform Agnostic: GitHub, GitLab, Bitbucket, Azure DevOps, Gitea
- Multi-Model Support: OpenAI, Claude, Deepseek, and more
- Self-Hosted: Full control over your data and infrastructure
Quick Start
# AI-powered setup — auto-detects your project
mergemate-review init
# Or specify details
mergemate-review init --model deepseek/deepseek-v4-flash --language python --project-type web
This generates .mergemate.toml + GitHub Actions workflow. Add your API key as a repo secret, done.
Manual
# .github/workflows/mergemate.yml
name: MergeMate
on:
pull_request:
types: [opened, synchronize]
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: mergemate/mergemate@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLI
pip install mergemate-review
export OPENAI_KEY=your_key_here
mergemate-review --pr_url https://github.com/owner/repo/pull/123 review
Docker
docker run -e OPENAI_KEY=$OPENAI_KEY \
mergemate/mergemate review \
--pr_url https://github.com/owner/repo/pull/123
Features
| Tool | Description |
|---|---|
/review |
Comprehensive PR review with inline suggestions |
/describe |
Auto-generate PR title and description |
/improve |
Code suggestions as review comments |
/ask |
Ask questions about the PR in context |
/update_changelog |
Update CHANGELOG based on PR contents |
/add_docs |
Generate documentation for changed code |
/generate_labels |
Auto-label PRs based on content |
/similar_issue |
Find related issues |
Platform Support
| GitHub | GitLab | Bitbucket | Azure DevOps | Gitea | |
|---|---|---|---|---|---|
| Review | ✅ | ✅ | ✅ | ✅ | ✅ |
| Describe | ✅ | ✅ | ✅ | ✅ | ✅ |
| Improve | ✅ | ✅ | ✅ | ✅ | ✅ |
| Ask | ✅ | ✅ | ✅ | ✅ | |
| CLI | ✅ | ✅ | ✅ | ✅ | ✅ |
| Webhook/App | ✅ | ✅ | ✅ | ✅ | ✅ |
Core Capabilities
- PR Compression: Adaptive file patch fitting for any PR size
- Dynamic Context: Automatically gather relevant project context
- Ticket Context: Fetch linked issue/ticket information
- Interactivity: Respond to comments and follow-up questions
- Self-Reflection: Review and improve its own output
- Multi-Model: Switch between AI providers via configuration
Configuration
MergeMate is configured via .mergemate.toml in your repository root. See mergemate/settings/configuration.toml for all available options.
[config]
model = "gpt-4"
git_provider = "github"
[pr_reviewer]
extra_instructions = "Focus on security and performance"
Data Privacy
MergeMate is self-hosted — your code never leaves your infrastructure. API calls go directly from your deployment to your chosen AI provider (OpenAI, Anthropic, etc.).
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
Proprietary. All rights reserved.
Metadata
Release files for mergemate-review 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mergemate_review-1.0.9.tar.gz | 258.6 kB | Without provenance | Details for mergemate_review-1.0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mergemate_review-1.0.9-py3-none-any.whl | Python 3 | none | any | Details for mergemate_review-1.0.9-py3-none-any.whl |
Total release size: 579.0 kB
Release files / mergemate_review-1.0.9.tar.gz
| Download URL | mergemate_review-1.0.9.tar.gz |
|---|---|
| Size | 258.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24d9fc30f948d4d32ed38a4eded41812eb31b7be80ce00a870de8dc7094068a5
|
|
BLAKE2b-256 checksum How to use checksums |
63f4a3c53dcbc17e55cc1a30ee535a19a01385bd9b6027a0e001526ef4cf9d5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / mergemate_review-1.0.9-py3-none-any.whl
| Download URL | mergemate_review-1.0.9-py3-none-any.whl |
|---|---|
| Size | 320.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
01c16d0d8d5e30a38bb854098738917ba6d69c657df1f2bd8383ae97cbd722f6
|
|
BLAKE2b-256 checksum How to use checksums |
cc6ad944493a46c887ec2ca7dc7e5b23c8763b02ce17570c1bbcc1aae22c65f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for mergemate-review 1.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.