Skip to content

[BUG] GitHub PRs fail to sync for private repos #111

@everlastingcrown

Description

@everlastingcrown

Expected Behavior

Opened PRs show on the "Pull Requests" page and GitHub Sync does not error.

Actual Behavior

When a PR is open, an error shows on the "Pull Requests" page along the lines of Missing: Checks: write, which prevents showing any pull request info.

Similarly, when doing GitHub Sync, the following error occurs:

Failed while
Checking GitHub review and CI status
Raw error
Request failed due to following response > errors:

  • Resource not accessible by personal access token

Steps to Reproduce the Problem

  1. Open a PR in a private GitHub repo
  2. Supply a PAT with ability to read/write contents, PRs and issues
  3. Run GitHub sync

Additional Information

cli/cli#12597 notes that gh pr view with a fine grained PAT in a private repo does not work. There is not a "Checks" permission available in a PAT.

Not sure which command this plugin calls, but if possible gracefully handle this edge case and still render the "Pull Request" page for the info that can be retrieved.

Specifications

  • Version: 0.8.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions