Skip to content

feat: add parsec merge to merge PRs from terminal#43

Merged
erishforG merged 1 commit intodevelopfrom
feature/40
Apr 15, 2026
Merged

feat: add parsec merge to merge PRs from terminal#43
erishforG merged 1 commit intodevelopfrom
feature/40

Conversation

@erishforG
Copy link
Copy Markdown
Owner

Summary

  • Add parsec merge command to merge PRs directly from the terminal via GitHub API
  • Waits for CI to pass before merging (with --no-wait to skip)
  • Supports squash (default) and rebase merge methods
  • Auto-cleans local worktree and branch after successful merge
  • Auto-detects current worktree ticket if no argument given

Changes

File Change
src/github/mod.rs MergeResult struct + merge_pr() function (PUT merge API + branch deletion)
src/output/{mod,human,json}.rs print_merge() dispatcher, colored human output, JSON output
src/cli/mod.rs Merge command variant with --rebase, --no-wait, --no-delete-branch
src/cli/commands.rs merge() handler with CI wait loop, worktree cleanup, oplog recording
README.md Command reference section
docs/index.html "Merge from Terminal" feature card

Test plan

  • parsec merge <ticket> — squash merges PR, waits for CI
  • parsec merge <ticket> --rebase — rebase merge
  • parsec merge <ticket> --no-wait — skips CI check
  • parsec merge <ticket> --no-delete-branch — keeps remote branch
  • parsec merge <ticket> --json — JSON output
  • Auto-detect from worktree (no ticket arg)
  • cargo build && cargo clippy && cargo fmt --check — all pass

Closes #40

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erishforG erishforG merged commit 9b1bb03 into develop Apr 15, 2026
7 checks passed
@erishforG erishforG deleted the feature/40 branch April 16, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant