Create pull request with Linear issue linking and status sync. Triggers on "create PR", "linear PR", "submit for review", "开PR".
Create a pull request with Linear issue integration and optional draft mode.
Usage: /yux-linear-pr [--draft] [additional description]
--draft: Create as draft PR (early feedback before full review)git log origin/main..HEAD --onelinegh auth status passesLIN-xxx from branch namemcp__linear__get_issue(id: "LIN-xxx")git log origin/main..HEAD --pretty=format:"%s" --reverse
Group by type for changelog.
[LIN-456] <Issue Title>Closes LIN-456) + changes + test planFirst check if a PR already exists for this branch:
gh pr view --json number,url 2>/dev/null
If a PR exists, inform the user and offer to view/update it instead of creating a duplicate.
Otherwise create:
git push origin HEAD
gh pr create --title "<title>" --body "<body>" --base main [--draft]
If .claude/linear-tasks.json exists:
pr_number, status to pr_created, update last_active_atmcp__linear__update_issue(id: "<uuid>", state: "In Review")
mcp__linear__create_comment(issueId: "<uuid>", body: "PR created: <url>")
gh pr checks <number> --json name,state,conclusion 2>/dev/null
Display one-time status snapshot.
=== PR Created ===
PR: #82 - [LIN-456] Add user authentication
URL: https://github.com/org/repo/pull/82
Branch: feat/LIN-456-user-auth → main
Linear: LIN-456 → In Review
CI: pending (3 checks)
Next: /yux-linear-merge when approved