Under the "Require status checks to pass" section of rulesets there is a setting that is not available in the SDK.
Do not require status checks on creation
gh cli shows it available on the API as do_not_enforce_on_create
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/ORG/REPO/rulesets/RULESET_ID
...
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"do_not_enforce_on_create": true,
"required_status_checks": [
{
"context": "CI Check"
}
]
}
}
...
I would like to manage this through the Terraform provider which uses this SDK.
Under the "Require status checks to pass" section of rulesets there is a setting that is not available in the SDK.
Do not require status checks on creation
gh clishows it available on the API asdo_not_enforce_on_createI would like to manage this through the Terraform provider which uses this SDK.