Add tool to manage branch protection rules across many repositories
还没有人认领这个 Issue。
评估
调研方向
从 issue 中链接的 GitHub branch protection REST API 开始,确定如何管理多个存储库的保护规则。将脚本输入定义为存储库列表和 release 名称列表;完成的标准是可以集中更新规则,而不依赖 release-* 通配符,从而使 release 推送和合并队列正常工作。
由索引模型根据 Issue 内容生成。
描述
We currently have a branch protection rule in place that protects "release-*" branches in our repositories.
This has drawbacks:
- it will cause release scripts to fail because the newly created release branches cannot be pushed to by the script
- prs on these branches cannot use the merge queue (not possible with wildcards in the branch name)
It might be worth switching to individual protection rules for every release, but that would make them hard to change/administer.
The github api allows managing these rules: https://docs.github.com/en/rest/branches/branch-protection?apiVersion=2022-11-28
We should look into writing a simple python script that takes a list of repos and release names and updates these protection rules.
- 主要语言
- Shell
- 星标
- 2
- 派生
- 1
- 平均合并
- 5 天 18 小时
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/stackable-utils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 55/100
stackabletech/stackable-utils#134 ·
-
release-retro/25.3.0
难度 2/5 1-3 小时 新手友好度 58/100
stackabletech/stackable-utils#104 ·
-
难度 3/5 1-2 天 新手友好度 25/100
-
难度 2/5 1-3 小时 新手友好度 52/100
查看 stackabletech/stackable-utils 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
nolte/kamerplanter-appliance#32 ·
维护者通常 1 天内回复
-
research
难度 2/5 1-3 小时 新手友好度 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
维护者通常 1 天内回复
-
bug priority-medium to-agent
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 78/100
ONLYOFFICE/DocumentServer#3917 ·