Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot view GitHub PR descriptions using the GitHub Pull Requests extension #23143

Open
dkwon17 opened this issue Sep 12, 2024 · 0 comments
Open
Labels
area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@dkwon17
Copy link
Contributor

dkwon17 commented Sep 12, 2024

Describe the bug

When the GH pull requests extension is installed:
image

I cannot view any PR descriptions:
image

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

  1. In a cluster with GitHub OAuth configured, create a workspace with https://github.com/che-incubator/quarkus-api-example
  2. 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":
    image
  3. Click on the Description item in any PR
    image

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

@dkwon17 dkwon17 added the kind/bug Outline of a bug - must adhere to the bug report template. label Sep 12, 2024
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 12, 2024
@dkwon17 dkwon17 added severity/P2 Has a minor but important impact to the usage or development of the system. area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git/oauth-services OAuth support to authenticate developers with their GitHub, GitLab, Bitbucket etc...accounts kind/bug Outline of a bug - must adhere to the bug report template. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

2 participants