-
Notifications
You must be signed in to change notification settings - Fork 0
GitHub ルールセットを追加(コアブランチ保護) #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Core branches (main/dev) の保護ルールセットを追加。 - ブランチの削除を禁止 - Force push を禁止 - PR 必須(承認数は0でOK) - マージ方法は通常の merge のみ許可 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
WalkthroughGitHub リポジトリに新しいルールセット設定ファイルを追加し、 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 分 Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@github/rulesets/core-branches-protectionruleset.json`:
- Around line 2-6: The JSON includes response-only fields and is missing a
required enforcement field: remove "id", "source", and "source_type" from the
request payload used with the GitHub Rulesets API (they are returned by GitHub,
not sent), ensure when updating you provide the ruleset id in the URL path
rather than in the body, and add the mandatory "enforcement" property with one
of the allowed values ("disabled", "active", or "evaluate") to the ruleset
object (refer to the "id", "source_type", "source" keys and the "enforcement"
field in this file for where to apply the changes).
Remove id, source_type, and source fields which are returned by GitHub API but should not be included in request payloads. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
PR #1 の修正: ファイル名を protectionruleset から protection-ruleset に変更 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
概要
変更内容
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.