standards: let repos opt in to the body as the squash message (#1568)
Merged
DO
7d ago+140+140+012345678901234567890123456789-15-15-01234567890123456789
Why
The standard sets each squash commit's message to the branch's commit messages, so main's log carries lines such as "wip" instead of the body that was reviewed. The prose ADR in #1566 makes the message the pull request's body. This adds an opt-in, off by default, so repos move one at a time after a dry run. Refs #1568, which stays open until the repos are moved.
What changed
standards/squash-pr-body-repos.json: new list of repos whose squash message is the pull request body. It holds only software-factory, which already usesPR_TITLE+PR_BODY(read back 2026-11-23), so the settings run stops resetting it.scripts/apply-repo-settings.sh: a listed repo is expected onPR_TITLE+PR_BODY; every other repo stays onPR_TITLE+COMMIT_MESSAGES, as today. The title and message are now always sent together, since GitHub needs the title whenever the message is set. A missing list means commit messages for all; a list that is not{"repos": [names]}is an error, so a broken file never rolls a listed repo back.standards/github-settings.md: the Merge Settings row names the list.test/scripts/apply-repo-settings/apply-repo-settings.bats: eight tests. The shipped list holds software-factory and is the script's default; a malformed list or one whose repos are not strings is an error; a repo off the list is left alone; a missing list means commit messages; a listed repo moves to the body; a listed repo already there is left alone; a wrong title alone still sends the message beside it.
What to look at
- Merging this changes no repo by itself. The only listed repo, software-factory, already has the listed values; every other repo gets the same values as today, even after the weekly settings run picks up a new release of the script. A repo moves only when a later pull request adds it to the list.
- Order: dry-run each repo read-only, then add repos to the list, with
.githuband.github-privatelast. Before any repo is added, #1573 (the autocut reads a breaking change only from the title's!, ruled by the Maintainer on 2026-11-23) must merge and reach stable. - One change for repos off the list: when only the title is wrong, the PATCH now also sends
COMMIT_MESSAGES, which is the value they already hold. - Risk: low while the list holds only software-factory. Rollback: revert this pull request; once repos are listed, remove them from the list, and the next settings run puts them back on commit messages. Monitoring: the settings script's output for each listed repo.
Decisions and protected edits
None added; this carries out the ADR in #1566. No protected edits.
Checks and reviews
- Tests:
bats test/scripts/apply-repo-settings/apply-repo-settings.batspasses 56 of 56 locally (48 on main).shellcheck -S warningis clean, andmarkdownlint-cli2passes on the standard. - CodeRabbit: 1 finding (send the title with the message), taken. Gemini: 1 finding (touch the calls file before the negated grep), taken in the rewritten tests. Claude review: the same title finding, taken. Security read: the merge was not inert, because a release reaches every repo's weekly settings run. Taken: the change is now behind the opt-in list. Graphite: an empty list would reset software-factory; dev-lead seeded it, kept (inert: its settings already match). CodeRabbit, later: reject a malformed list, taken by dev-lead; check membership, not the whole array, taken; link to an ADR that lands with #1566, kept (the link resolves when #1566 merges); make the body the org default, declined (repos move one at a time by the Maintainer's order).
🤖 Generated with Claude Code