From 0c1bfb40662225c841ef9caf0f38adc09157dbc0 Mon Sep 17 00:00:00 2001 From: Roming22 Date: Wed, 10 Jul 2024 15:37:06 -0400 Subject: [PATCH] Add support for App Callback URLs (#3204) Fixes: #3203. --- scrape/apps.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scrape/apps.go b/scrape/apps.go index 7bb2d6f30d..c2fc77c68b 100644 --- a/scrape/apps.go +++ b/scrape/apps.go @@ -110,11 +110,14 @@ type OAuthApp struct { // AppManifest represents a GitHub App manifest, used for preconfiguring // GitHub App configuration. +// c.f. https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest type AppManifest struct { // The name of the GitHub App. Name *string `json:"name,omitempty"` //Required. The homepage of your GitHub App. URL *string `json:"url,omitempty"` + // The full URL(s) of the endpoint(s) to authenticate users via the GitHub App (Max: 10). + CallbackURLs []string `json:"callback_urls,omitempty"` // Required. The configuration of the GitHub App's webhook. HookAttributes map[string]string `json:"hook_attributes,omitempty"` // The full URL to redirect to after the person installs the GitHub App.