Skip to content

Commit

Permalink
backend-common: make integrations host and urls visibile in the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Rugvip committed Nov 23, 2020
1 parent e906636 commit b47dce0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-rockets-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage/backend-common': patch
---

Make integration host and url configurations visible in the frontend
35 changes: 28 additions & 7 deletions packages/backend-common/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export interface Config {
integrations?: {
/** Integration configuration for Azure */
azure?: Array<{
/** The hostname of the given Azure instance */
/**
* The hostname of the given Azure instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
Expand All @@ -98,14 +101,20 @@ export interface Config {

/** Integration configuration for BitBucket */
bitbucket?: Array<{
/** The hostname of the given Bitbucket instance */
/**
* The hostname of the given Bitbucket instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/** The base url for the BitBucket API, for example https://api.bitbucket.org/2.0 */
/**
* The base url for the BitBucket API, for example https://api.bitbucket.org/2.0
* @visibility frontend
*/
apiBaseUrl?: string;
/**
* The username to use for authenticated requests.
Expand All @@ -121,22 +130,34 @@ export interface Config {

/** Integration configuration for GitHub */
github?: Array<{
/** The hostname of the given GitHub instance */
/**
* The hostname of the given GitHub instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
* @visibility secret
*/
token?: string;
/** The base url for the GitHub API, for example https://api.github.com */
/**
* The base url for the GitHub API, for example https://api.github.com
* @visibility frontend
*/
apiBaseUrl?: string;
/** The base url for GitHub raw resources, for example https://raw.githubusercontent.com */
/**
* The base url for GitHub raw resources, for example https://raw.githubusercontent.com
* @visibility frontend
*/
rawBaseUrl?: string;
}>;

/** Integration configuration for GitLab */
gitlab?: Array<{
/** The hostname of the given GitLab instance */
/**
* The hostname of the given GitLab instance
* @visibility frontend
*/
host: string;
/**
* Token used to authenticate requests.
Expand Down

0 comments on commit b47dce0

Please sign in to comment.