Skip to content

Commit

Permalink
add a GitHub branch rulset
Browse files Browse the repository at this point in the history
This rulset must be enabled in all new repositories.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Jun 24, 2024
1 parent 6a7af07 commit 5b9a10a
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions branch-default-rulset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"id": 985613,
"name": "default",
"target": "branch",
"source_type": "Repository",
"source": "seapath/cukinia-tests",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
}
},
"rules": [
{
"type": "deletion"
},
{
"type": "non_fast_forward"
},
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 1,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": false,
"require_last_push_approval": true,
"required_review_thread_resolution": false
}
},
{
"type": "required_linear_history"
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"required_status_checks": [
{
"context": "DCO"
}
]
}
}
],
"bypass_actors": []
}

0 comments on commit 5b9a10a

Please sign in to comment.