Declare require_extra_approval_for_unattributed_changes in Rulesets - #932
Conversation
GitHub enabled this pull_request ruleset parameter by default on every new and existing ruleset. It requires one more approval than the configured threshold when Copilot opens a PR under its own app identity rather than attributed to a person. It is already live=true on both of the hub's own rulesets and on Blog's, so this only catches the committed payloads up to what GitHub already applies, matching the fleet default rather than choosing a new one. repo-config/operational/develop.json carries no pull_request rule at all, so the issue's third file does not apply, operational repos have no PR gate on develop to carry this parameter. Fixes #926 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
PR Summary by QodoDeclare GitHub ruleset flag for extra approval on unattributed PR changes
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
There was a problem hiding this comment.
🟢 Approval recommended
The change is a minimal, verified payload sync that aligns the committed ruleset parameters with GitHub’s live defaults and does not introduce new behavior beyond removing spurious drift.
Pull request overview
This pull request updates the hub’s committed GitHub ruleset payloads to explicitly include the newly added pull_request ruleset parameter require_extra_approval_for_unattributed_changes, matching GitHub’s now-default live configuration and eliminating false-positive drift from repo-config/configure.sh check.
Changes:
- Add
"require_extra_approval_for_unattributed_changes": trueto thepull_requestrule parameters inrepo-config/main.json. - Add
"require_extra_approval_for_unattributed_changes": trueto thepull_requestrule parameters inrepo-config/develop.json.
File summaries
| File | Description |
|---|---|
| repo-config/main.json | Declares the new pull_request parameter in the canonical main ruleset payload to match GitHub’s live default and avoid drift reports. |
| repo-config/develop.json | Declares the same new pull_request parameter in the canonical develop ruleset payload for release-model repos, aligning payload vs. live ruleset state. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can turn these tips off under Display preferences |
|
Warning Review limit reached
Next review available in: 3 minutes Limit details: You’ve used all 10 included reviews currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Comment |
Fixes #926.
GitHub added the
pull_requestruleset parameterrequire_extra_approval_for_unattributed_changesand enabled it by default on every new and existing ruleset (it requires one more approval than the configured threshold when Copilot opens a PR under its own app identity rather than attributed to a person). It was absent from the hub's committed payloads, soconfigure.sh checkflagged every repo carrying it, including the hub's owndevelop/mainrulesets, as drift, even though nothing was ever actually misconfigured.Confirmed live
trueon both of the hub's own rulesets and on Blog's before choosing the value, so this commits what GitHub already applies fleet-wide rather than picking a new default. It also has no live behavioral effect today, since it only matters oncerequired_approving_review_countis above zero, which is 0 on every ruleset checked so far.One correction to the issue's ask:
repo-config/operational/develop.jsoncarries nopull_requestrule at all (operational repos take direct signed pushes todevelop, no PR gate), so there's nopull_requestparameters object there to add the key to. Onlydevelop.jsonandmain.jsonchanged.Verified:
repo-config/configure.sh check ptr727/ProjectTemplate releasenow passes clean (previously would flagdevelop/mainrulepull_requestparameters as mismatched, matching the issue's own repro against Blog).🤖 Generated with Claude Code