feat: split integrations.bitbucket -> bitbucketCloud / bitbucketServer
Split `integrations.bitbucket` into `integrations.bitbucketCloud` and `integrations.bitbucketServer` while staying backwards compatible for now (== `BitbucketIntegration` loads from the new configs, too, if the old is not used). Relates-to: #9923 Signed-off-by: Patrick Jungermann <Patrick.Jungermann@gmail.com>
This commit is contained in:
Vendored
+37
-1
@@ -31,7 +31,10 @@ export interface Config {
|
||||
token?: string;
|
||||
}>;
|
||||
|
||||
/** Integration configuration for Bitbucket */
|
||||
/**
|
||||
* Integration configuration for Bitbucket
|
||||
* @deprecated replaced by bitbucketCloud and bitbucketServer
|
||||
*/
|
||||
bitbucket?: Array<{
|
||||
/**
|
||||
* The hostname of the given Bitbucket instance
|
||||
@@ -60,6 +63,39 @@ export interface Config {
|
||||
appPassword?: string;
|
||||
}>;
|
||||
|
||||
/** Integration configuration for Bitbucket Cloud */
|
||||
bitbucketCloud?: Array<{
|
||||
/**
|
||||
* The username to use for authenticated requests.
|
||||
* @visibility secret
|
||||
*/
|
||||
username: string;
|
||||
/**
|
||||
* Bitbucket Cloud app password used to authenticate requests.
|
||||
* @visibility secret
|
||||
*/
|
||||
appPassword: string;
|
||||
}>;
|
||||
|
||||
/** Integration configuration for Bitbucket Server */
|
||||
bitbucketServer?: Array<{
|
||||
/**
|
||||
* The hostname of the given Bitbucket Server instance
|
||||
* @visibility frontend
|
||||
*/
|
||||
host: string;
|
||||
/**
|
||||
* Token used to authenticate requests.
|
||||
* @visibility secret
|
||||
*/
|
||||
token?: string;
|
||||
/**
|
||||
* The base url for the Bitbucket Server API, for example https://<host>/rest/api/1.0
|
||||
* @visibility frontend
|
||||
*/
|
||||
apiBaseUrl?: string;
|
||||
}>;
|
||||
|
||||
/** Integration configuration for Gerrit */
|
||||
gerrit?: Array<{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user