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

[Bug][Github Plugin] API call to remote-scopes returns a list of 1 and no github data #7381

Open
2 of 3 tasks
andyflatt opened this issue Apr 25, 2024 · 1 comment
Open
2 of 3 tasks
Labels
type/bug This issue is a bug

Comments

@andyflatt
Copy link

andyflatt commented Apr 25, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

When calling plugins/github/connections/[github_conn]/remote-scopes?groupId=[github_org] with a connection enabled with a GithubApp the response returns a page size of 1 and the returning result is missing data.

{
    "children": [
        {
            "type": "scope",
            "parentId": "org",
            "id":  [some_id],
            "name": "repo",
            "fullName": "org/repo",
            "data": null
        }
    ],
    "nextPageToken": "eyJwYWdlIjoyLCJwZXJfcGFnZSI6MTAwfQ=="
}

When calling the same API with the github connection setup with a token I a full response with the data populated correctly.

What do you expect to happen

I expected to see the same result as with a token.

How to reproduce

I have recently upgraded from v0.20 to v1.0.0 beta 5.

Setup two github connections one using an API key and the other using a token. They are both enabled to use the graphql API.

Anything else

No response

Version

v1.0.0-beta5

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@andyflatt andyflatt added the type/bug This issue is a bug label Apr 25, 2024
@andyflatt andyflatt changed the title [Bug][Module Name] Bug title [Bug][Github Plugin] API call to remote-scopes returns a list of 1 and no github data Apr 25, 2024
@klesh
Copy link
Contributor

klesh commented Apr 26, 2024

Sounds like some essential permissions are missing.
Did you follow this guide and set up the required permissions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants