Skip to content

Commit 0c1bfb4

Browse files
authored
Add support for App Callback URLs (#3204)
Fixes: #3203.
1 parent 2204dce commit 0c1bfb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scrape/apps.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,14 @@ type OAuthApp struct {
110110

111111
// AppManifest represents a GitHub App manifest, used for preconfiguring
112112
// GitHub App configuration.
113+
// c.f. https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest
113114
type AppManifest struct {
114115
// The name of the GitHub App.
115116
Name *string `json:"name,omitempty"`
116117
//Required. The homepage of your GitHub App.
117118
URL *string `json:"url,omitempty"`
119+
// The full URL(s) of the endpoint(s) to authenticate users via the GitHub App (Max: 10).
120+
CallbackURLs []string `json:"callback_urls,omitempty"`
118121
// Required. The configuration of the GitHub App's webhook.
119122
HookAttributes map[string]string `json:"hook_attributes,omitempty"`
120123
// The full URL to redirect to after the person installs the GitHub App.

0 commit comments

Comments
 (0)