Skip to content

gh@2.32.0 returning GraphQL errors when running gh pr checks command #7716

@danxg87

Description

@danxg87

Describe the bug

This has been encountered only with the latest gh release 2.32.0:
When we run gh pr checks or gh pr checks $PR_NUMBER or gh pr checks $BRANCH_NAME we always receive the following message:

GraphQL: Field 'event' doesn't exist on type 'WorkflowRun' (query PullRequestStatusChecks.node.... on PullRequest.statusCheckRollup.nodes.commit.statusCheckRollup.contexts.nodes.... on CheckRun.checkSuite.workflowRun.event)

Note: This has been replicated both locally on Linux+MacOS and on github action runners (where we first debugged this failure) for us.

Steps to reproduce the behavior

  1. Type gh pr checks $PR_NUMBER where $PR_NUMBER is the number of the pull request in question
  2. View the output
  3. See the above error

Expected vs actual behavior

Expect: the usual pr checks to show with any failed/passed/pending PR checks
Actually: receive the above gql failure message

Logs

dgeorge @ stationx ~/my_repo (kd/testing-issues)
└─ $ ➤ gh pr checks 844
GraphQL: Field 'event' doesn't exist on type 'WorkflowRun' (query PullRequestStatusChecks.node.... on PullRequest.statusCheckRollup.nodes.commit.statusCheckRollup.contexts.nodes.... on CheckRun.checkSuite.workflowRun.event)
dgeorge @ stationx ~/my_repo (kd/testing-issues)
└─ $ ➤

NOTE: When manually downloading/running 2.31.0 everything works just fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions