Open petercort opened 1 week ago
Hello, @petercort! I'm here to assist you with any bugs, questions, or contribute to the repository. Let me know how I can help you while we wait for a human maintainer.
To resolve the issue where creating a GitHub App connection does not auto-populate organizations or repositories and does not allow multiselect to add repositories, ensure the following:
Correct Permissions: Verify that the GitHub App has the necessary permissions. The required permissions for collecting data from repositories are:
Endpoint URL: Ensure the Endpoint URL is correctly set to https://api.github.com/
and ends with a /
.
Personal Access Token: If using a Personal Access Token (PAT), ensure it has the required permissions:
repo:status
repo_deployment
read:user
read:org
repo
read:user
read:org
GraphQL API: If using fine-grained PATs, ensure the Use GraphQL APIs
option is disabled as fine-grained PATs do not support GraphQL APIs.
Proxy Settings: If behind a corporate firewall or VPN, ensure the Proxy URL is correctly configured.
Rate Limits: Ensure the rate limit settings do not exceed the maximum allowed by GitHub.
Add Data Scopes: After creating the connection, ensure you add the data scopes correctly. Choose the GitHub repositories you wish to collect either by finding them in the miller column or searching. Note that you can only add public repositories through the search box.
Test and Save Connection: Click Test Connection
, if the connection is successful, click Save Connection
to add the connection.
If all the above settings are correct and the issue persists, refer to the GitHub Configuration Guide for detailed instructions [1][2][3][4][5].
Additionally, specific error messages or logs can indicate why the organizations or repositories are not being auto-populated. Functions like listGithubOrgRepos
, listGithubAppInstalledRepos
, and listGithubUserOrgs
return errors if they encounter issues during the API calls. These errors are propagated back to the caller, which can then log or display them to indicate the issue [6].
To continue talking to Dosu, mention @dosu.
Can you share the request payload from your browser under the Network tab? Please remove any sensitive information before you post but keep the overall structure.
Once the connection is created, I've got 2 calls http://localhost:4000/api/plugins/github/connections/11/scopes?page=1&pageSize=10&blueprints=true Response:
{"count":0,"scopes":[]}
http://localhost:4000/api/plugins/github/connections/11/remote-scopes Response:
{
"children": [
{
"type": "scope",
"parentId": "petes-fre-shavocado-stand",
"id": "UID",
"name": "roadwork",
"fullName": "petes-fre-shavocado-stand/roadwork",
"data": null
}
],
"nextPageToken": ""
}
http://localhost:4000/api/plugins/github/connections/11/scopes
Search before asking
What happened
Creating a GitHub App connection isn't working as expected.
What do you expect to happen
I would expect that the repositories in the organization where the app has been installed would auto populate and I could select multiples to add as a data source.
How to reproduce
Anything else
I was able to reproduce this behavior with a GitHub app installed into an organization and my personal account.
I'm willing to take a crack at a PR if it's not a massive thing. I'll spend some time setting up a debugger and seeing if I can get more info. Might need someone more skilled than me (cough cough copilot) to fix this.
I also tested this with the v0.21.0@ac4f7fe and it's reproducible there.
Here's the error message formatted nicely:
Version
v1.0.0-beta11@15c4c09
Are you willing to submit PR?
Code of Conduct