Skip to content

Commit cc87179

Browse files
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

File tree

Cargo.lock

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ chrono = { version = "0.4", features = ["serde"] }
3030
[dev-dependencies]
3131
insta = "1.39"
3232
mockito = "1.4"
33+
serial_test = "3.1"
3334
tokio-test = "0.4"

0 commit comments

Comments
 (0)