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
- Open a PR in a private GitHub repo
- Supply a PAT with ability to read/write contents, PRs and issues
- 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
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:
Steps to Reproduce the Problem
Additional Information
cli/cli#12597 notes that
gh pr viewwith 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