Mark a Linear ticket as Done after its PR has been merged. Usage: /after-merge TZA-5
Mark one or more Linear tickets as Done after their PRs have been merged.
The user invoked this with: $ARGUMENTS
Parse all ticket IDs from this input (e.g. TZA-5, TZA-5 TZA-6 TZA-7).
If no ticket IDs are found, ask: "Which ticket was merged? (e.g. TZA-5)"
b2ef251a-01af-4aa8-bc3a-759fce5b5a2b4a6f308a-abe4-4243-8b04-4e1ed8ee8cc8 (TzachClaude)Extract all ticket identifiers from $ARGUMENTS (e.g. TZA-5, TZA-6).
Process each one through steps 2–3 before moving to step 4.
Use linear_search_issues to find the ticket and confirm:
If the ticket is not in "In Review", warn the user:
"TZA-X is currently in [status], not In Review. Are you sure you want to mark it Done?" Ask for confirmation before proceeding.
Use linear_update_issue to set the ticket status to Done.
Confirm: "✓ TZA-X — [title] marked as Done."
After marking Done, check if all tickets in the same phase are now Done:
linear_search_issues to find all tickets in the same phase"Phase X still has [N] open tickets: [list]"
## Phase X Complete ✅
All Phase X tickets are merged and done.
[list of completed tickets]
/after-merge TZA-5 TZA-6 TZA-7 — $ARGUMENTS will be TZA-5 TZA-6 TZA-7, parse and process each one