Merge PR, clean up branch, and mark Linear issue as Done. Triggers on "linear merge", "merge this PR", "complete task", "合并PR".
Merge PR, clean up, and close Linear issue.
Usage: /yux-linear-merge [--squash|--rebase|--merge]
--squash (default): Squash all commits--rebase: Rebase and merge--merge: Create merge commit.claude/linear-config.jsonLIN-xxx from branch, fetch issue via mcp__linear__get_issue()gh pr view --json number,state,mergeable,mergeStateStatusGather from both GitHub and Linear:
gh pr view <number> --json reviews,comments,reviewDecisionmcp__linear__list_comments(issueId: "<uuid>")Filter: only show CHANGES_REQUESTED reviews, unresolved questions, change suggestions. Skip: APPROVED reviews, resolved threads, status updates.
Display if issues exist (skip section entirely if none).
Use AskUserQuestion:
Delegate to linear-merge-executor skill (runs in forked subagent) with:
The skill handles: CI polling -> merge validation -> execute merge -> cleanup -> Linear update.
On success:
.claude/linear-tasks.jsonactive_task to most recently active remaining task (or null)Do NOT call ExitWorktree proactively — let the user decide.