リポジトリルールセット:ユーザーのバイパスとブランチ名変更機能の追加
GitHub がリポジトリレベルのルールセットに、特定の個人をバイパスアクターとして追加する機能と、組織ルールで保護されたブランチの名前変更機能を追加した。
GitHub リポジトリルールセットは、現在、2 つの頻繁に要望されていた機能をサポートしています。それは、個別のユーザーをバイパスアクターとして追加することと、組織ルールセットでカバーされているブランチの名前を変更することです。
個別のユーザーをバイパスアクターとして追加
リポジトリレベルのルールセットにおいて、個別のユーザーを UI、REST API、GraphQL を介してバイパスアクターとして追加できるようになりました。単一の個人やサービスアカウントに対してバイパスアクセス権限を与えるために専用にチームやロールを作成していた場合は、その手順をスキップして直接アカウントを追加できます。
ルールセットでカバーされるブランチの名前変更
リポジトリ管理者は、新しいブランチ名が元の名称に適用されていたすべてのルールセットの範囲内に留まる限り、組織またはエンタープライズルールセットでカバーされているブランチの名前を変更できるようになりました。これにより、どのルールが適用されるかが変わらない場合(例:master から main への移行)、通常の改名作業のために組織管理者や企業管理者を巻き込む必要がなくなります。
エンタープライズレベルの設定:
組織レベルの設定:
元のブランチに適用されていたすべての組織レベルおよびエンタープライズレベルのルールが、新しいブランチ名にも適用される場合のみ、改名は許可されます。
新しい名前が適用されるルールセットの範囲外となる場合、リネームはブロックされ、そのレベルの管理者が行う必要があります。
組織および企業管理者は、設定でこの機能を無効にできます。
詳細については、ルールセットのドキュメントをご覧ください。
本記事「Repository rulesets: User bypass and branch renaming」は、最初に The GitHub Blog で公開されました。
原文を表示
GitHub repository rulesets now support two frequently requested features: adding individual users as bypass actors and renaming branches covered by organization rulesets.
Add individual users as bypass actors
You can now add individual users as bypass actors on repository-level rulesets through the UI, REST API, and GraphQL. If you’ve been creating dedicated teams or roles just to grant bypass access for a single person or service account, you can now skip that step and add accounts directly.
Rename branches covered by rulesets
Repository administrators can now rename a branch that’s covered by an organization or enterprise ruleset, as long as the new branch name remains within the scope of every ruleset that applied to the original name. This removes the need to involve an organization or enterprise administrator for routine renames (e.g., migrating from master to main) when the rename doesn’t change which rules apply.
Enterprise-level setting:
Organization-level setting:
The rename is allowed only when every organization-level and enterprise-level rule that applied to the original branch also applies to the new branch name.
If the new name would fall outside the scope of any applicable ruleset, the rename is blocked and an administrator at that level must perform it.
Organization and enterprise administrators can disable this capability in their settings.
To learn more, see the rulesets documentation.
The post Repository rulesets: User bypass and branch renaming appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み