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
- Install version 2.21.0
- Type this
gh issue view --repo cli/cli 6778 --comments
- See the error mentioned above
Expected vs actual behavior
Expected to see issue with all its comments
Logs
Linux install:
|
type -p curl >/dev/null || sudo apt install curl -y |
|
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ |
|
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ |
|
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ |
|
&& sudo apt update \ |
|
&& sudo apt install gh -y |
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}]
Describe the bug
Running
gh issue viewwith the--commentsflag prints a GraphQL error on the newly-released https://github.com/cli/cli/releases/tag/v2.21.0:Running the command without the
--commentsflag does not print the error.Steps to reproduce the behavior
gh issue view --repo cli/cli 6778 --commentsExpected vs actual behavior
Expected to see issue with all its comments
Logs
Linux install:
cli/docs/install_linux.md
Lines 17 to 22 in 7ffa87f
then