Skip to content

Github Enterprise, GraphQL error: Field 'branchProtectionRule' doesn't exist on type 'Ref' #2993

@inside

Description

@inside

Describe the bug

When doing gh pr status along with GitHub Enterprise, I get an error.
It was working with gh version 1.5.0.

This is the version where the error occurs:

% gh --version
gh version 1.6.0 (2021-02-17)
https://github.com/cli/cli/releases/tag/v1.6.0

Steps to reproduce the behavior

  1. Type this: gh pr status
  2. View the output: there's only an error
  3. See error:
% gh pr status
GraphQL error: Field 'branchProtectionRule' doesn't exist on type 'Ref'
Field 'branchProtectionRule' doesn't exist on type 'Ref'

Expected vs actual behavior

I expect the status of relevant PRs to show up

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority-1Affects a large population and inhibits work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions