Merge pull request #3647 from O5ten/patch-2

Fix missing baseUrl in graphql client for GHE
This commit is contained in:
Fredrik Adelöw
2020-12-10 13:28:17 +01:00
committed by GitHub
3 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': minor
---
Add support for Github Enterprise in GitHubOrgReaderProcessor so you can properly ingest users of a GHE organization.
+1 -1
View File
@@ -133,7 +133,7 @@ catalog:
$env: GITHUB_TOKEN
#### Example for how to add your GitHub Enterprise instance using the API:
# - target: https://ghe.example.net
# apiBaseUrl: https://ghe.example.net/api/v3
# apiBaseUrl: https://ghe.example.net/api
# token:
# $env: GHE_TOKEN
ldapOrg:
@@ -64,6 +64,7 @@ export class GithubOrgReaderProcessor implements CatalogProcessor {
const client = !provider.token
? graphql
: graphql.defaults({
baseUrl: provider.apiBaseUrl,
headers: {
authorization: `token ${provider.token}`,
},