Follow through to issue closure
Read the entry point's shared rules.
Input: issue/PR URLs, agreed solution scope, branch/head, verification/review evidence, and the requested follow-up. Refresh remote evidence; never infer approval or merge from elapsed time or a previously attempted command.
- Read the PR state/current head, human reviews, unresolved discussions, required checks, and mergeability. Approval must apply to the current revision under repository policy; new commits invalidate assumptions about prior checks/approval. Route requested fixes back to implementation on the same issue branch, or to definition if scope materially changes.
- If human approval, required checks, conflict resolution, or merge authorization is missing, report the exact blocker. Monitor only when requested or when an authorized merge must wait, using available event-driven monitoring; otherwise stop with a resumable handoff.
- Merge only with explicit authorization, human approval, and passing gates. Use the permitted merge method and
gh pr merge --match-head-commit <reviewed-sha>when usinggh. Never bypass protections with administrative options. Queued or auto-merge-enabled is not merged. - After GitHub confirms merge, verify the complete solution reached the intended integration branch and read issue state. Report observed automatic closure; it can lag the merge by a short while, so read the state again just before acting. If still open, manually close with a comment linking the merged PR only when integration and human approval are evidenced. For non-default targets, wait for default integration or an explicit maintainer decision that the target completes the issue. Never close for unmerged, rejected, or partial work.
- When an issue PR is merged into a release branch, record the integration. Post a summary comment on the issue: what changed, decisions made in review, verification, and a link to the PR's compatibility summary. Then comment on the release issue with the PR, its head and merge SHA, and a link to that summary.
Handoff: issue/PR URLs, merged commit and observed issue state, any integration comment URLs, or the precise pending action. If merge succeeded but closure failed, report closure pending and retry only closure, not the merge or PR creation.
Original Markdown, including metadata
--- name: work-issue-close description: Handle approval/merge follow-up and verify issue closure for an existing internal factory issue PR. Use after PR delivery; require explicit merge authorization and human approval before merging. --- # Follow through to issue closure Read the [entry point's shared rules](../work-issue/SKILL.md). **Input:** issue/PR URLs, agreed solution scope, branch/head, verification/review evidence, and the requested follow-up. Refresh remote evidence; never infer approval or merge from elapsed time or a previously attempted command. 1. Read the PR state/current head, human reviews, unresolved discussions, required checks, and mergeability. Approval must apply to the current revision under repository policy; new commits invalidate assumptions about prior checks/approval. Route requested fixes back to implementation on the same issue branch, or to definition if scope materially changes. 2. If human approval, required checks, conflict resolution, or merge authorization is missing, report the exact blocker. Monitor only when requested or when an authorized merge must wait, using available event-driven monitoring; otherwise stop with a resumable handoff. 3. Merge only with explicit authorization, human approval, and passing gates. Use the permitted merge method and `gh pr merge --match-head-commit <reviewed-sha>` when using `gh`. Never bypass protections with administrative options. Queued or auto-merge-enabled is not merged. 4. After GitHub confirms merge, verify the complete solution reached the intended integration branch and read issue state. Report observed automatic closure; it can lag the merge by a short while, so read the state again just before acting. If still open, manually close with a comment linking the merged PR only when integration and human approval are evidenced. For non-default targets, wait for default integration or an explicit maintainer decision that the target completes the issue. Never close for unmerged, rejected, or partial work. 5. When an issue PR is merged into a release branch, record the integration. Post a summary comment on the issue: what changed, decisions made in review, verification, and a link to the PR's compatibility summary. Then comment on the release issue with the PR, its head and merge SHA, and a link to that summary. **Handoff:** issue/PR URLs, merged commit and observed issue state, any integration comment URLs, or the precise pending action. If merge succeeded but closure failed, report closure pending and retry only closure, not the merge or PR creation.