Commit cc87179
committed
feat: add land command for merging stacked PRs
Add a new 'land' subcommand that intelligently merges a stack of PRs:
- Finds the topmost PR where all PRs below it are approved
- Updates that PR's base to the target branch (main/master)
- Squash-merges that single PR (contains all commits from the stack)
- Closes all PRs below it with a 'Landed via #N' comment
Features:
- --dry-run: Preview what would happen without making changes
- --no-approval: Skip approval requirement check
- --count N: Only land bottom N PRs in the stack
- Draft PRs block landing of PRs above them
This follows the spr/Graphite optimization pattern for efficient stack landing.1 parent fdadf62 commit cc87179
8 files changed
Lines changed: 1083 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
0 commit comments