Skip to content

gh status fails to display if any comment 404s #7872

@rwe

Description

@rwe

Describe the bug

The command gh status will fail to display any notifications if any comments 404.
This can occur if a comment is in a private repo of which the account is no longer a member.

$ gh version
gh version 2.32.1 (2023-07-24)
https://github.com/cli/cli/releases/tag/v2.32.1

Steps to reproduce the behavior

  1. gh status (when the account was mentioned in a comment from a private repo, since revoked)
  2. could not load notifications: could not fetch comment: HTTP 404: Not Found (https://api.github.com/repos/xxx/yyy/issues/comments/1234567890)
  3. See error

Expected vs actual behavior

I would expect to be able to see the other status items, despite a single one failing.

Logs

See above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions