Skip to content

Rulesets - do not require status checks on creation #3244

Description

@MattMencel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions