adevinta/maiao

Seamless GitHub PR management from the command-line

Go

160

71 commits

updated Jul 8, 2026

See the code

README

Maiao

License GitHub all releases downloads

Gerrit-style code review workflow for GitHub

Maiao brings the power of stacked pull requests to GitHub, enabling you to break large features into small, reviewable commits where each commit becomes its own PR.

🎯 What is Maiao?

Maiao provides the git review command that:

  • Creates one PR per commit in your branch
  • Stacks PRs automatically with proper parent-child dependencies
  • Manages fixups elegantly using git commit --fixup
  • Tracks commits via Change-IDs (using the Gerrit commit-msg hook)
  • Auto-rebases your stack when PRs get merged

πŸš€ Quick Example

# Make multiple commits
git commit -m "Add user authentication"
git commit -m "Add authorization middleware"
git commit -m "Add admin endpoints"

# Create stacked PRs for all commits
git review

Result: Three GitHub PRs created:

  • PR #1: Add user authentication β†’ main
  • PR #2: Add authorization middleware β†’ PR #1
  • PR #3: Add admin endpoints β†’ PR #2

✨ Key Benefits

  • Granular Reviews: Each commit reviewed independently for faster, focused feedback
  • Clear History: One logical change per PR maintains clean git history
  • Easy Fixups: Address review feedback with git commit --fixup <sha>
  • Automatic Stacking: Tool manages PR dependencies automatically
  • Merge Detection: Stack updates automatically when PRs merge
  • Rebase Integration: Handles upstream changes gracefully

πŸ“š Documentation

πŸŽ“ Learn About Stacked Diffs

Maiao implements the stacked diffs methodology. Learn more:

πŸŽͺ Why "Maiao"?

As Maiao encourages users to create smaller and nicer commits in their pull requests, it has been given the name of a tiny island:

🀝 Contributing

Contributions are welcome! See CONTRIBUTING.md for details.

πŸ“œ License

MIT License - see DISCLAIMER.md for details.

Contributors

dependabot[bot]

34 commits

tjamet

28 commits

joaoqalves

6 commits

eduramirezh

1 commits

adevinta/maiao

Seamless GitHub PR management from the command-line

Go

160

71 commits

updated Jul 8, 2026

See the code

README

Maiao

License GitHub all releases downloads

Gerrit-style code review workflow for GitHub

Maiao brings the power of stacked pull requests to GitHub, enabling you to break large features into small, reviewable commits where each commit becomes its own PR.

🎯 What is Maiao?

Maiao provides the git review command that:

  • Creates one PR per commit in your branch
  • Stacks PRs automatically with proper parent-child dependencies
  • Manages fixups elegantly using git commit --fixup
  • Tracks commits via Change-IDs (using the Gerrit commit-msg hook)
  • Auto-rebases your stack when PRs get merged

πŸš€ Quick Example

# Make multiple commits
git commit -m "Add user authentication"
git commit -m "Add authorization middleware"
git commit -m "Add admin endpoints"

# Create stacked PRs for all commits
git review

Result: Three GitHub PRs created:

  • PR #1: Add user authentication β†’ main
  • PR #2: Add authorization middleware β†’ PR #1
  • PR #3: Add admin endpoints β†’ PR #2

✨ Key Benefits

  • Granular Reviews: Each commit reviewed independently for faster, focused feedback
  • Clear History: One logical change per PR maintains clean git history
  • Easy Fixups: Address review feedback with git commit --fixup <sha>
  • Automatic Stacking: Tool manages PR dependencies automatically
  • Merge Detection: Stack updates automatically when PRs merge
  • Rebase Integration: Handles upstream changes gracefully

πŸ“š Documentation

πŸŽ“ Learn About Stacked Diffs

Maiao implements the stacked diffs methodology. Learn more:

πŸŽͺ Why "Maiao"?

As Maiao encourages users to create smaller and nicer commits in their pull requests, it has been given the name of a tiny island:

🀝 Contributing

Contributions are welcome! See CONTRIBUTING.md for details.

πŸ“œ License

MIT License - see DISCLAIMER.md for details.

Contributors

dependabot[bot]

34 commits

tjamet

28 commits

joaoqalves

6 commits

eduramirezh

1 commits

Languages

Go

98.3%