che
che copied to clipboard
Cannot view GitHub PR descriptions using the GitHub Pull Requests extension
Describe the bug
When the GH pull requests extension is installed:
I cannot view any PR descriptions:
Error message:
GraphQL error: Your token has not been granted the required scopes to execute this query. The 'viewerCanPush' field requires one of the following scopes: ['public_repo'], but your token has only been granted the: ['user:email'] scopes. Please modify your token's scopes at: https://github.com/settings/tokens.
at new e (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:140)
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:20946
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:26905
at Set.forEach (<anonymous>)
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:26882
at Map.forEach (<anonymous>)
at t.broadcastQueries (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:26833)
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:28379
at Object.next (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:17489)
at C (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15433)
at N (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15836)
at M.value (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:16358)
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:14263
at Set.forEach (<anonymous>)
at Object.next (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2038:14226)
at C (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15433)
at N (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15836)
at M.value (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:16358)
at C (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15433)
at N (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:15836)
at M.value (/checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2015:16358)
at /checode/remote/extensions/github.vscode-pull-request-github-0.96.0-universal/dist/extension.js:2129:10912
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
This is the dogfooding cluster where GitHub OAuth is set up.
Che version
7.91@latest
Steps to reproduce
- In a cluster with GitHub OAuth configured, create a workspace with https://github.com/che-incubator/quarkus-api-example
- When the editor is running, wait until the GitHub pull request extension is installed automatically. Click on the extension icon on the left, and click "Allow":
- Click on the
Descriptionitem in any PR
Expected behavior
There should be no error and the PR description should be viewable in the editor
Runtime
OpenShift
Screenshots
No response
Installation method
other (please specify in additional context)
Environment
Linux
Eclipse Che Logs
No response
Additional context
No response