`gh issue view` with `--comments` fails with GraphQL error · Issue #6778 · cli/cli · GitHub
Skip to content

gh issue view with --comments fails with GraphQL error #6778

Description

@francoiscampbell

Describe the bug

Running gh issue view with the --comments flag prints a GraphQL error on the newly-released https://github.com/cli/cli/releases/tag/v2.21.0:

Message: Field 'id' doesn't exist on type 'Actor', Locations: [{Line:1 Column:132}]
Message: Field 'name' doesn't exist on type 'Actor', Locations: [{Line:1 Column:135}]
Message: Field 'id' doesn't exist on type 'Actor', Locations: [{Line:1 Column:410}]
Message: Field 'name' doesn't exist on type 'Actor', Locations: [{Line:1 Column:413}]

Running the command without the --comments flag does not print the error.

Steps to reproduce the behavior

  1. Install version 2.21.0
  2. Type this gh issue view --repo cli/cli 6778 --comments
  3. See the error mentioned above

Expected vs actual behavior

Expected to see issue with all its comments

Logs

Linux install:


then

$ GH_TOKEN=*** gh issue view --repo cli/cli 6778 --comments
Message: Field 'id' doesn't exist on type 'Actor', Locations: [{Line:1 Column:132}]
Message: Field 'name' doesn't exist on type 'Actor', Locations: [{Line:1 Column:135}]
Message: Field 'id' doesn't exist on type 'Actor', Locations: [{Line:1 Column:410}]
Message: Field 'name' doesn't exist on type 'Actor', Locations: [{Line:1 Column:413}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions