Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: Rulesets - Do not require status checks on creation #2360

Open
1 task done
MattMencel opened this issue Aug 22, 2024 · 0 comments · May be fixed by #2361
Open
1 task done

[FEAT]: Rulesets - Do not require status checks on creation #2360

MattMencel opened this issue Aug 22, 2024 · 0 comments · May be fixed by #2361
Labels
Type: Feature New feature or request

Comments

@MattMencel
Copy link

MattMencel commented Aug 22, 2024

Describe the need

When creating rulesets there is a checkbox under "require status checks to pass" that isn't available through the provider.

Do not require status checks on creation

I looked through the SDK and did not find a reference to it so I opened an Issue there as well.

The setting in the API is 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"
          }
        ]
      }
    }
...

SDK Version

> v64.0.0

API Version

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MattMencel MattMencel added Status: Triage This is being looked at and prioritized Type: Feature New feature or request labels Aug 22, 2024
@MattMencel MattMencel linked a pull request Aug 22, 2024 that will close this issue
4 tasks
@kfcampbell kfcampbell removed the Status: Triage This is being looked at and prioritized label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants