From 34b039ca9f35898354bc17c751a7a334a2b0a3e6 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 17 Nov 2022 13:33:45 +0100 Subject: [PATCH] integrations: add allowedInstallationOwners to config schema Signed-off-by: Patrik Oldsberg --- .changeset/weak-ears-jam.md | 5 +++++ packages/integration/config.d.ts | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100644 .changeset/weak-ears-jam.md diff --git a/.changeset/weak-ears-jam.md b/.changeset/weak-ears-jam.md new file mode 100644 index 0000000000..8f20937998 --- /dev/null +++ b/.changeset/weak-ears-jam.md @@ -0,0 +1,5 @@ +--- +'@backstage/integration': patch +--- + +Added `integrations.github.apps.allowedInstallationOwners` to the configuration schema. diff --git a/packages/integration/config.d.ts b/packages/integration/config.d.ts index 49a121aff3..a1eb7aceb9 100644 --- a/packages/integration/config.d.ts +++ b/packages/integration/config.d.ts @@ -189,6 +189,14 @@ export interface Config { * @visibility secret */ clientSecret: string; + /** + * List of installation owners allowed to be used by this GitHub app. The GitHub UI does not provide a way to list the installations. + * However you can list the installations with the GitHub API. You can find the list of installations here: + * https://api.github.com/app/installations + * The relevant documentation for this is here. + * https://docs.github.com/en/rest/reference/apps#list-installations-for-the-authenticated-app--code-samples + */ + allowedInstallationOwners?: string[]; }>; }>;