schema: add "pending" field to GitHub code host connection (#32433)

This commit is contained in:
Joe Chen 2022-03-14 14:13:07 +08:00 committed by GitHub
parent 84b896840d
commit 014e8742fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -175,6 +175,11 @@
"description": "The installation ID of the GitHub App.",
"type": "string"
},
"pending": {
"description": "Whether the code host connection is in a pending state.",
"type": "boolean",
"default": false
},
"cloudGlobal": {
"title": "CloudGlobal",
"description": "When set to true, this external service will be chosen as our 'Global' GitHub service. Only valid on Sourcegraph.com. Only one service can have this flag set.",

View File

@ -729,6 +729,8 @@ type GitHubConnection struct {
InitialRepositoryEnablement bool `json:"initialRepositoryEnablement,omitempty"`
// Orgs description: An array of organization names identifying GitHub organizations whose repositories should be mirrored on Sourcegraph.
Orgs []string `json:"orgs,omitempty"`
// Pending description: Whether the code host connection is in a pending state.
Pending bool `json:"pending,omitempty"`
// RateLimit description: Rate limit applied when making background API requests to GitHub.
RateLimit *GitHubRateLimit `json:"rateLimit,omitempty"`
// Repos description: An array of repository "owner/name" strings specifying which GitHub or GitHub Enterprise repositories to mirror on Sourcegraph.