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

Manually merged
github merged 1 commit from gh-pr/905/head into gh-pr/905/base 2026-11-26 09:27:27 +00:00
Owner

@⁠TuroYT on GitHub · 2026-11-24 15:09 UTC · original
TuroYT:docs/pr-template-commands-section → main · +2 −2 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC

Claimed in the coordination issue as: PR-TEMPLATE-COMMANDS-SECTION (#14)

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).

**@⁠TuroYT** on GitHub · 2026-11-24 15:09 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/905) `TuroYT:docs/pr-template-commands-section` → `main` · +2 −2 · 1 files · 1 commits · merged 2026-11-25 21:26 UTC Claimed in the coordination issue as: PR-TEMPLATE-COMMANDS-SECTION (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### 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).
The Depends-on prompt sent authors to the coordination issue's Commands section,
but issue #14 has no such section (its sections are How to use it, Open work,
Pull request activity and Rules). The prompt now points at AGENTS.md and the
open pull requests the issue lists. The rest of the template is unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:27:25 +00:00
github manually merged commit d15e4c4338 into gh-pr/905/base 2026-11-26 09:27:27 +00:00
Author
Owner

@⁠PierreEbele on GitHub · 2026-11-25 02:14 UTC · original

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

**@⁠PierreEbele** on GitHub · 2026-11-25 02:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/905#issuecomment-7150482625) 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
This discussion has been locked. Commenting is limited to contributors.
No description provided.