[BUG]: CreateRepositoryRuleset Mutation Failing to Create Rules with Parameters #320
Open
1 task done
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
What happened?
The following code should create a new repository ruleset query that restricts branch updates on the default branch to PRs with passing status checks named
ng test
andng lint
.This code fails with an exception stating "Only one rule parameter type can be specified."
On closer inspection of the compiled query is comes out to the following:
If you pass this graphql to the GitHub GraphQL Explorer you get the same message.
The problem here is the parameters that are specified but nulled out in the following:
If you remove the nulls and make the query the following it works as expected:
We need to update the compiler to not include the null fields for the parameters of this query.
Versions
Octokit.GraphQL 0.4.0-beta
net8.0
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: