-
Notifications
You must be signed in to change notification settings - Fork 978
docs(maintainers): correct the claim that this repository is unprotected #3060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -52,8 +52,8 @@ when a maintainer steps down. | |||||||||
| a new push still resets every box. A disproved claim unticks the matching | ||||||||||
| box and keeps the PR a draft. | ||||||||||
| Authors with repository push permission skip the ancestry heuristic only. As | ||||||||||
| with the approval requirement above, this is enforced by convention until | ||||||||||
| branch protection is configured (see the note under the change log). | ||||||||||
| with the approval requirement above, this part is enforced by convention; | ||||||||||
| the ruleset does not check ancestry (see the note under the change log). | ||||||||||
| - A pull request requires approval from at least one maintainer and successful required CI checks | ||||||||||
| before merge. | ||||||||||
| - Authors do not approve their own pull requests. | ||||||||||
|
|
@@ -160,11 +160,21 @@ Adding or removing a maintainer requires: | |||||||||
| and release automation keep the two owners already listed for those paths, so | ||||||||||
| this addition does not widen the review surface for them. | ||||||||||
|
|
||||||||||
| CODEOWNERS requests reviews rather than enforcing them — no branch protection | ||||||||||
| rule is configured on this repository, so code-owner approval is a convention | ||||||||||
| here, not a gate. The same is true of the approval requirement in the review | ||||||||||
| and merge policy above. Widening the security boundary, or enforcing either | ||||||||||
| of these through branch protection, is a separate decision. | ||||||||||
| Code-owner approval and the maintainer-approval requirement above are both | ||||||||||
| enforced, not conventions. `dev`, `main`, and `preview` each carry an active | ||||||||||
| repository ruleset — the classic `/branches/{branch}/protection` endpoint | ||||||||||
| returns 404 for them, which is why this file long described the repository as | ||||||||||
| unprotected. `Protect dev` (id 20763889) requires a pull request with one | ||||||||||
| approving review, code-owner review, and extra approval for unattributed | ||||||||||
| changes, and it blocks deletion and non-fast-forward pushes. Allowed merge | ||||||||||
| methods are merge and squash; rebase merges are off. | ||||||||||
|
|
||||||||||
| The one carve-out is that the `maintain`/`admin` repository role holds a | ||||||||||
| `pull_request` bypass, so an owner can merge without the approval the rules | ||||||||||
|
Comment on lines
+172
to
+173
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Name every bypass role accurately. The paragraph first assigns the bypass to the Proposed wording- so an owner can merge without the approval the rules otherwise require.
+ so a user with the `maintain` or `admin` role can merge without the approval the rules otherwise require.📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| otherwise require. That is a bypass, not an exemption: "Authors do not approve | ||||||||||
| their own pull requests" above still governs, and an owner who uses the bypass | ||||||||||
| should record it on the pull request rather than leave it to be inferred from | ||||||||||
| a merge timestamp. Widening the security boundary is a separate decision. | ||||||||||
|
|
||||||||||
| ## Security reports | ||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Reconcile the direct-push policy.
Lines 311-312 say that direct pushes to
devare rejected.MAINTAINERS.mdLines 73-74 still says that direct pushes are reserved for maintainer-owned integration work, urgent repairs, and incident recovery. Unless that rule applies only to unprotected branches, the two documents give conflicting instructions. UpdateMAINTAINERS.mdLines 73-74 or qualify this paragraph.Proposed wording for MAINTAINERS.md
🤖 Prompt for AI Agents