stackabletech / stackabletech/stackable-utils
Add tool to manage branch protection rules across many repositories
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 2
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
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.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue にリンクされている GitHub branch protection REST API から始め、複数のリポジトリの保護ルールを管理する方法を確認します。スクリプトの入力をリポジトリのリストと release-name のリストとして定義します。release-* ワイルドカードに依存せずにルールを一元的に更新でき、release の push と merge queue が機能すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- github, python
- 領域
- devops, release
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100