Skip to content

Commit

Permalink
Add status checks to default rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed May 22, 2024
1 parent 4309b59 commit c69fea4
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/branch-protection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ curl --location "https://api.github.com/repos/NHSDigital/$1/rulesets" \
{
"type": "non_fast_forward"
},
{
"type": "required_signatures"
},
{
"type": "pull_request",
"parameters": {
Expand All @@ -36,6 +33,20 @@ curl --location "https://api.github.com/repos/NHSDigital/$1/rulesets" \
"require_last_push_approval": true,
"required_review_thread_resolution": true
}
},
{
"type": "required_signatures"
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"required_status_checks": [
{
"context": "*"
}
]
}
}
]
}'

0 comments on commit c69fea4

Please sign in to comment.