8000 [BUG]: Incorrect params for field `isRequired` under `pullRequest -> statusCheckRollup -> contexts` · Issue #598 · octokit/graphql.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG]: Incorrect params for field isRequired under pullRequest -> statusCheckRollup -> contexts #598
Open
@Oripi

Description

@Oripi

What happened?

It looks like there's an issue with the isRequired field under repo -> pullRequests -> nodes -> statusCheckRollup -> contexts -> nodes -> isRequired

the field requires params, but they should be inferred in this context.
example query:

query ($var1: String!, $var2: String!) {
  repo: repository(owner: $var1, name: $var2) {
    pullRequests(first: 4, states: [OPEN]) {
      totalCount
      nodes {
        title
        statusCheckRollup {
          contexts(first: 50) {
            nodes {
              ... on StatusContext {
                id
                description
                # params are required here, but in this context the id of the PR is known
                isRequired
              }
            }
          }
        }
      }
    }
  }
}

Versions

octokit: 4.0.13
node: v18.17.1

Relevant log output

{
	"type": "UNPROCESSABLE",
	"path": [
		"repository",
		"pullRequests",
		"nodes",
		4,
		"statusCheckRollup",
		"contexts",
		"nodes",
		2,
		"isRequired"
	],
	"locations": [
		{
			"line": 19,
			"column": 9
		}
	],
	"message": "A pull request ID or pull request number is required."
}

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Up for grabsIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    🔥 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0