[INFRA] Set up default rulesets for default and release branches#898
[INFRA] Set up default rulesets for default and release branches#898asf-gitbox-commits wants to merge 1 commit into
Conversation
| includes: | ||
| - "~DEFAULT_BRANCH" | ||
| - "release/*" | ||
| - "rel/*" |
There was a problem hiding this comment.
We don't have "release/*" or "rel/*" branches. If we did branches for releases (which will come once we publish 3.0.0), I think I'd rather name them "rel_*". Currently we just tag releases.
But in any case that can be done once we do have release branches. At this point adding these two patterns is YAGNI.
| - "rel/*" | ||
| excludes: [] | ||
| bypass_teams: | ||
| - root |
There was a problem hiding this comment.
Who is this team "root"? Is there a team for PMC members? I'd like to have at least someone in the Apache MINA PMC to have the rights to bypass these restrictions.
| bypass_teams: | ||
| - root | ||
| restrict_deletion: true | ||
| restrict_force_push: true |
There was a problem hiding this comment.
This just restricts force pushes, right? Direct fast-forward pushes are still possible?
| excludes: [] | ||
| bypass_teams: | ||
| - root | ||
| restrict_deletion: true |
There was a problem hiding this comment.
If someone creates a "rel" or "release" branch by mistake, how can I then remove that?
This Pull Request enables the repository to conform with the "sane default security settings" of the Apache Software Foundation by configuring a default branch ruleset that protects the default branch and any release branches.
Note that
~DEFAULT_BRANCHis a GitHub symbolic link to the current default branch (HEAD) of the repository and does not need changing.If the managing project does not wish to set up these defaults, please close this Pull Request. Alternatively, the project may merge this Pull Request to apply the changes immediately.
If no action is taken, this Pull Request will be automatically merged by the Apache Infrastructure team on 2026-06-14 (30 days from now).
For any further information, please reach us on Slack or at: users@infra.apache.org