Skip to content

Commit

Permalink
update branch rules (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
KingBain authored Dec 12, 2024
1 parent 4e0e855 commit 06d2293
Showing 1 changed file with 65 additions and 69 deletions.
134 changes: 65 additions & 69 deletions .github/workflows/branch-rulesets/default-branch.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,70 @@
{
"name": "default branch",
"target": "branch",
"source_type": "Repository",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": [
"~DEFAULT_BRANCH"
]
"name": "default branch",
"target": "branch",
"source_type": "Repository",
"source": "ssc-sp/datahub-portal",
"enforcement": "active",
"conditions": {
"ref_name": {
"exclude": [],
"include": ["~DEFAULT_BRANCH"]
}
},
"rules": [
{
"type": "deletion"
},
{
"type": "non_fast_forward"
},
{
"type": "required_linear_history"
},
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 1,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": false,
"require_last_push_approval": false,
"required_review_thread_resolution": true,
"automatic_copilot_code_review_enabled": false
}
},
"rules": [
{
"type": "deletion",
"parameters": {}
},
{
"type": "non_fast_forward",
"parameters": {}
},
{
"type": "required_linear_history",
"parameters": {}
},
{
"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": true
}
},
{
"type": "code_scanning",
"parameters": {
"code_scanning_tools": [
{
"tool": "CodeQL",
"security_alerts_threshold": "high_or_higher",
"alerts_threshold": "errors"
}
]
}
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "ssc-sp.datahub-portal",
"integration_id": null
}
]
}
},
{
"type": "creation",
"parameters": {}
{
"type": "code_scanning",
"parameters": {
"code_scanning_tools": [
{
"tool": "CodeQL",
"security_alerts_threshold": "high_or_higher",
"alerts_threshold": "errors"
}
]
}
],
"bypass_actors": [
{
"actor_id": 1,
"actor_type": "OrganizationAdmin",
"bypass_mode": "always"
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": false,
"required_status_checks": [
{
"context": "ssc-sp.datahub-portal",
"integration_id": 9426
}
]
}
]
}
},
{
"type": "creation"
}
],
"bypass_actors": [
{
"actor_id": 1,
"actor_type": "OrganizationAdmin",
"bypass_mode": "always"
}
]
}

0 comments on commit 06d2293

Please sign in to comment.