[INFRA] Set up default rulesets for default and release branches - #395
Open
asf-gitbox-commits wants to merge 1 commit into
Open
[INFRA] Set up default rulesets for default and release branches#395asf-gitbox-commits wants to merge 1 commit into
asf-gitbox-commits wants to merge 1 commit into
Conversation
AlexStocks
reviewed
Jul 14, 2026
| branches: | ||
| includes: | ||
| - "~DEFAULT_BRANCH" | ||
| - "release/*" |
Contributor
There was a problem hiding this comment.
[P1] 现有发布分支没有被这些模式命中
仓库实时分支是 1.3 到 1.12,它们当前全部 protected=false;ASF normalizer 生成的条件只有 ~DEFAULT_BRANCH、refs/heads/release/* 和 refs/heads/rel/*,因此合并后实际只覆盖 master,这些版本维护分支仍可被删除或强推。这与 PR 声明保护默认分支和发布分支不一致。请按仓库真实命名补充数值版本分支模式(或显式 include 列表),并在提交前用实时 branch list 对账覆盖范围。
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.
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