dosubot[bot] commented on issue #7508: URL: https://github.com/apache/incubator-devlake/issues/7508#issuecomment-2129093661
<!-- Answer --> 1. Since you are using the GitHub Server option with the **GraphQL** option toggled off, the data collection process will rely on the REST API instead of GraphQL. This means the `CollectApiPullRequests` function will be used to collect pull request data. 2. The table that captures the `ConnectionId` and `Name` parameters is `archived.GithubConnection`. Here is the relevant code snippet: ```go err = db.AutoMigrate(archived.GithubConnection{}) if err != nil { return err } encodeKey := basicRes.GetConfig(plugin.EncodeKeyEnvStr) connection := &archived.GithubConnection{} connection.Endpoint = basicRes.GetConfig(`GITHUB_ENDPOINT`) connection.Proxy = basicRes.GetConfig(`GITHUB_PROXY`) connection.Token = basicRes.GetConfig(`GITHUB_AUTH`) connection.Name = `GitHub` if connection.Endpoint != `` && connection.Token != `` && encodeKey != `` { // update from .env and save to db err = db.Create(connection) if err != nil { return err } } ``` This code creates a `GithubConnection` entry with `ConnectionId` and `Name` parameters <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/github/models/migrationscripts/20220715_add_init_tables.go)</sup>. <!-- Dosu Comment Footer --> <details> <summary> #### Details </summary> **About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. </details> *To continue the conversation, mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org