Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/rulesets/main.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "main",
"target": "branch",
"enforcement": "active",
"bypass_actors": [],
"conditions": {
"ref_name": {
"include": ["~DEFAULT_BRANCH"],
"exclude": []
}
},
"rules": [
{ "type": "deletion" },
{ "type": "non_fast_forward" },
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 0,
"dismiss_stale_reviews_on_push": false,
"require_code_owner_review": false,
"require_last_push_approval": false,
"require_extra_approval_for_unattributed_changes": true,
"required_review_thread_resolution": true,
"required_reviewers": [],
"allowed_merge_methods": ["merge"]
}
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": [{ "context": "ci" }]
}
}
]
}
13 changes: 13 additions & 0 deletions .github/rulesets/tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "release-tags",
"target": "tag",
"enforcement": "active",
"bypass_actors": [],
"conditions": {
"ref_name": {
"include": ["refs/tags/v*"],
"exclude": []
}
},
"rules": [{ "type": "deletion" }, { "type": "non_fast_forward" }]
}
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,12 @@ jobs:
cat "$HOME/plugins.txt"
grep -q 'omp-codebase-memory' "$HOME/plugins.txt"

# The single status check branch protection requires. Runtime jobs are never
# named there, so changing the matrix never means editing the ruleset.
# The single status check branch protection requires. `.github/rulesets/main.json`
# names the literal string `ci`; nothing mechanically verifies the two agree, so
# renaming this job silently blocks every merge with no failing job to point at.
#
# Runtime jobs are never named there. Adding, removing, or restructuring one
# means editing this job's `needs` and nothing else.
ci:
name: ci
needs: [hygiene, bun]
Expand Down