Skip to content

docs(review): a comments-only commit keeps the approvals - #962

Merged
amiddavid merged 1 commit into
mainfrom
feat/comment-only-approval
Nov 8, 2026
Merged

amiddavid merged 1 commit into
mainfrom
feat/comment-only-approval

Conversation

@amiddavid

Copy link
Copy Markdown
Collaborator

Summary

A commit after both offload-review approvals that changes only comments keeps both approvals. No new round.

This is the owner's rule (David Amid, 2026-11-08): "doc comments don't change the approval."

  • Data dependence: none (process docs and a release script).
  • Behavior change for users: none.

What changed

  • scripts/release/approval-still-valid.sh: when the patch-ids differ, the script checks the new head. It must descend from the approved head, with the same merge base. Every changed file must be .go or .sh. Every added or removed line must be blank or a whole-line comment. Then it prints COMMENTS ONLY and exits 0. Else it exits 1 as before. Unsure means code: a trailing comment, a mid-line block marker, a multi-line block, //go: and // +build lines, #!, # shellcheck.
  • RELEASING.md: new bullet in "When the head moves after an approval".
  • .claude/skills/offload-review/SKILL.md: new section "Comments after the approval". Step 4 says to fix the non-blocking comment notes first.
  • check-ready.sh: no change. It already points to approval-still-valid.sh and still does not accept old-head approvals.

How tested

No test suite exists for these scripts. bash -n passes. shellcheck is not installed. I ran comments_only by hand in a throwaway git repo:

Case Result
Go // edit, /* */ line, blank line pass
Shell # line pass
Code line changed fail (CHANGED)
//go:build line added fail
.md file fail
Code with trailing comment fail
Mid-line /* */ markers fail
# shellcheck directive fail
Multi-line block comment fail

The git steps of the script (fetch, merge base, ancestor check) ran no live test: they need a real PR.

🤖 Generated with Claude Code

Owner rule (David Amid, 2026-11-08): doc comments do not change the
approval. A commit after both approvals that changes only comments keeps
both approvals. No new review round.

- approval-still-valid.sh prints COMMENTS ONLY for such a commit.
- RELEASING.md and the offload-review skill state the rule.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant