Skip to content

Commit 776daaa

Browse files
committed
docs: require Closes #N in PR bodies so issues auto-close on merge
1 parent ab16c9e commit 776daaa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ When the user gives a prompt to implement a feature or bug fix in this repositor
7373

7474
1. **MUST** create a GitHub issue for the feature before starting work (`gh issue create`).
7575
2. **MUST** keep the issue updated with the current plan and progress as work proceeds.
76-
3. **MUST** ask the user whether to close the issue after the feature is fully implemented and verified — do not close it automatically or via `Closes #N` in commit messages.
76+
3. **MUST** put `Closes #N` in the PR body so the issue auto-closes when the PR merges. Closing keywords go in the PR body only, never in commit messages.
77+
4. **MUST** ask the user before closing an issue manually (`gh issue close`); auto-close via PR merge needs no ask.
7778

7879
Routine live operations are not repository feature work:
7980

0 commit comments

Comments
 (0)