fix(pr-quality): require last push approval — align codified ruleset with org policy (#575)#582
Conversation
…with org policy (#575) The codified pr-quality had require_last_push_approval=false, baked in when the file was authored (#972). That contradicts the org's actual policy: the meta-repos (.github, .github-private) and newer repos (TalkTerm, google-app-scripts) already enforce require_last_push_approval=true live, and #895 verified auto-rebase's update-branch is EXEMPT from last-push-approval (so enabling it does not fight the auto-rebase flow). Set the codified source of truth to true. Blast radius on next apply-rulesets run: tightens the three drifted repos still at false (ContentTwin, markets, broodly); no-op on the four already at true. Stacked on #577 (the relocation). Resolves the pr-quality file-vs-live drift flagged in petry-projects/.github-private#1013. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the pull request quality ruleset configuration in standards/rulesets/pr-quality.json to enable the require_last_push_approval setting. There are no review comments, and I have no additional feedback to provide.
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
There was a problem hiding this comment.
Pull request overview
Aligns the codified pr-quality ruleset definition with the organization’s intended policy by enabling “require last push approval” in standards/rulesets/pr-quality.json.
Changes:
- Set
require_last_push_approvaltotruein thepr-qualityruleset JSON.
| "required_review_thread_resolution": true, | ||
| "dismiss_stale_reviews_on_push": true, | ||
| "require_last_push_approval": false, | ||
| "require_last_push_approval": true, |
…sets/ (#575) (#577) * chore(rulesets): relocate code-quality + pr-quality JSON to standards/rulesets/ (#575) Move the org-wide compliance ruleset source of truth into its canonical home in petry-projects/.github. `.github` owns org-wide standards and compliance policy; `.github-private` is scoped to agents/skills and their assets (repo boundary codified in #576). - Add standards/rulesets/{code-quality,pr-quality}.json — byte-identical to the current .github-private/.github/rulesets/ copies (the 4-check code-quality set; NO coverage/secret-scan additions, which are sequenced separately to avoid bricking fleet repos that don't yet produce those checks). - Add standards/rulesets/README.md documenting source-of-truth, the scope boundary (release-channel-tags stays in .github-private), and the safe-sequencing rule for required-check additions. - github-settings.md: add a "Source of truth" pointer to standards/rulesets/. - AGENTS.md: add a Rulesets row to the Organization Standards index. The tooling repoint (apply-rulesets.sh + bootstrap-new-repo.sh) and removal of the JSONs from .github-private land in a follow-up PR against .github-private, which must merge after this one. Part of #575. Follows #576. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(pr-quality): require last push approval — align codified ruleset with org policy (#575) (#582) The codified pr-quality had require_last_push_approval=false, baked in when the file was authored (#972). That contradicts the org's actual policy: the meta-repos (.github, .github-private) and newer repos (TalkTerm, google-app-scripts) already enforce require_last_push_approval=true live, and #895 verified auto-rebase's update-branch is EXEMPT from last-push-approval (so enabling it does not fight the auto-rebase flow). Set the codified source of truth to true. Blast radius on next apply-rulesets run: tightens the three drifted repos still at false (ContentTwin, markets, broodly); no-op on the four already at true. Stacked on #577 (the relocation). Resolves the pr-quality file-vs-live drift flagged in petry-projects/.github-private#1013. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * chore: dev-lead update (review-changes) [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Co-authored-by: Don Petry Bot <donpetry+bot@gmail.com>
Summary
Sets
require_last_push_approval: truein the codifiedstandards/rulesets/pr-quality.json. Answers the review question on petry-projects/.github-private#1013: there is no good reason for it to befalse— it was baked in at authoring time (#972), and the org's actual policy istrue.Evidence
Live
require_last_push_approvalacross the fleet is split (drift):.github,.github-private,TalkTerm,google-app-scriptsContentTwin,markets,broodlytrue— that's the intended policy.update-branchis exempt fromrequire_last_push_approval(and dismiss-stale), so enabling it does not fight the auto-rebase flow — the historical worry that would justifyfalse.Blast radius
On the next
apply-rulesets.shrun this tightens the three drifted repos still atfalse(ContentTwin, markets, broodly) and is a no-op on the four already attrue. The applier is operator-invoked, so this takes effect deliberately, not automatically.Notes
chore/relocate-rulesets-575) so the diff is the single line; retargets tomainwhen chore(rulesets): relocate code-quality + pr-quality to standards/rulesets/ (#575) #577 merges.pr-qualityfile-vs-live drift flagged in chore(rulesets): repoint apply-rulesets + bootstrap to .github fleet source (#575) .github-private#1013.Part of #575.
🤖 Generated with Claude Code