Repository navigation
docs(review): a comments-only commit keeps the approvals - #962
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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."
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.goor.sh. Every added or removed line must be blank or a whole-line comment. Then it printsCOMMENTS ONLYand 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// +buildlines,#!,# 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 toapproval-still-valid.shand still does not accept old-head approvals.How tested
No test suite exists for these scripts.
bash -npasses.shellcheckis not installed. I rancomments_onlyby hand in a throwaway git repo://edit,/* */line, blank line#line//go:buildline added.mdfile/* */markers# shellcheckdirectiveThe git steps of the script (fetch, merge base, ancestor check) ran no live test: they need a real PR.
🤖 Generated with Claude Code