pull request template: stop pointing at a Commands section that does not exist (PR-TEMPLATE-COMMANDS-SECTION) #905

Merged
leonida/mandy
TuroYT merged 1 commit from docs/pr-template-commands-section into main 2026-11-25 21:26:06 +00:00

Pull request successfully merged and closed

TuroYT commented 2026-11-24 15:09:06 +00:00

Claimed in the coordination issue as: PR-TEMPLATE-COMMANDS-SECTION (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135513657)

What was wrong

.github/pull_request_template.md line 5 tells authors that the Depends on: rule is in "the coordination issue's Commands section, AGENTS.md". Issue #14 has no Commands section. Its headings are "How to use it", "Open work", "Pull request activity" and "Rules (short version)".

Reproduction on main at a28927849:

$ grep -n "Commands section" .github/pull_request_template.md
5:     Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none -->
$ gh api repos/ubiquitarianism/leonida/issues/14 --jq '.body|test("ommand";"i")'
false
$ gh api repos/ubiquitarianism/leonida/issues/14 --jq '.body|split("\n")|map(select(test("^#+ ")))|.[]'
## How to use it
## Open work
## Pull request activity
## Rules (short version)

What changed

Only the reference in the Depends on: prompt changed. The prompt now reads "(see AGENTS.md; the coordination issue lists the open pull requests)". The meaning is the same: list #N for every pull request this one builds on or conflicts with, and delete the line if there are none. The other lines of the template are unchanged.

Tested

$ grep -c "Commands section" .github/pull_request_template.md
0
$ python3 -I tests/test_docs_pr_template.py
Ran 2 tests in 0.000s, OK
$ python3 -I -c "import yaml,glob;[yaml.safe_load(open(f,encoding='utf-8')) for f in glob.glob('.github/workflows/*.yml')];print('ok')"
ok
$ python3 -I tests/test_text_write_line_endings.py
Ran 3 tests in 8.782s, OK
$ python3 -I scripts/check_no_game_data.py .github/pull_request_template.md
(exit 0)
$ git diff --check
(no output)

git grep -l pull_request_template tests/ lists only tests/test_docs_pr_template.py, which was run above.

Not tested

  • The page that GitHub renders for a new pull request from this template. I did not open it.
  • The wording itself. tests/test_docs_pr_template.py checks that each prompt line starts with its label, not the text after it.

AI-assisted (Claude Code).

Claimed in the coordination issue as: PR-TEMPLATE-COMMANDS-SECTION (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135513657) ### What was wrong `.github/pull_request_template.md` line 5 tells authors that the `Depends on:` rule is in "the coordination issue's Commands section, AGENTS.md". Issue #14 has no Commands section. Its headings are "How to use it", "Open work", "Pull request activity" and "Rules (short version)". Reproduction on `main` at a28927849: ``` $ grep -n "Commands section" .github/pull_request_template.md 5: Commands section, AGENTS.md); delete the line if it builds on none and conflicts with none --> $ gh api repos/ubiquitarianism/leonida/issues/14 --jq '.body|test("ommand";"i")' false $ gh api repos/ubiquitarianism/leonida/issues/14 --jq '.body|split("\n")|map(select(test("^#+ ")))|.[]' ## How to use it ## Open work ## Pull request activity ## Rules (short version) ``` ### What changed Only the reference in the `Depends on:` prompt changed. The prompt now reads "(see AGENTS.md; the coordination issue lists the open pull requests)". The meaning is the same: list `#N` for every pull request this one builds on or conflicts with, and delete the line if there are none. The other lines of the template are unchanged. ### Tested ``` $ grep -c "Commands section" .github/pull_request_template.md 0 $ python3 -I tests/test_docs_pr_template.py Ran 2 tests in 0.000s, OK $ python3 -I -c "import yaml,glob;[yaml.safe_load(open(f,encoding='utf-8')) for f in glob.glob('.github/workflows/*.yml')];print('ok')" ok $ python3 -I tests/test_text_write_line_endings.py Ran 3 tests in 8.782s, OK $ python3 -I scripts/check_no_game_data.py .github/pull_request_template.md (exit 0) $ git diff --check (no output) ``` `git grep -l pull_request_template tests/` lists only `tests/test_docs_pr_template.py`, which was run above. ### Not tested - The page that GitHub renders for a new pull request from this template. I did not open it. - The wording itself. `tests/test_docs_pr_template.py` checks that each prompt line starts with its label, not the text after it. AI-assisted (Claude Code).
PierreEbele commented 2026-11-25 02:14:31 +00:00

Reviewed d15e4c4: template-only change. The Depends on: hint no longer sends people to a "Commands section" of the coordination issue.

Checked on main 3ff2a2ad:

  • Issue #14's sections are "How to use it", "Open work", "Pull request activity" and "Rules (short version)". None of them is a Commands section, and git grep "Commands section" finds only this line in the tree.
  • AGENTS.md:52 does describe Depends on: #N, so the new pointer is correct.
  • The other three prompts and the comment syntax are unchanged.

Nit, not blocking: the rewrapped comment line is longer than the rest of the file.

AI-assisted review.

Recommendation: Merge

Reviewed d15e4c4: template-only change. The `Depends on:` hint no longer sends people to a "Commands section" of the coordination issue. Checked on main 3ff2a2ad: - Issue #14's sections are "How to use it", "Open work", "Pull request activity" and "Rules (short version)". None of them is a Commands section, and `git grep "Commands section"` finds only this line in the tree. - `AGENTS.md:52` does describe `Depends on: #N`, so the new pointer is correct. - The other three prompts and the comment syntax are unchanged. Nit, not blocking: the rewrapped comment line is longer than the rest of the file. AI-assisted review. **Recommendation:** Merge
Sign in to join this conversation.
No description provided.