chore: updating changesets and api-reports
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder': minor
|
||||
---
|
||||
|
||||
Added autocompletion for Bitbucket Cloud
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-bitbucket-cloud-common': patch
|
||||
---
|
||||
|
||||
Added support for access tokens
|
||||
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/integration': minor
|
||||
---
|
||||
|
||||
Add support for `token` for `bitbucketCloud` integration
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-bitbucket-cloud-common': patch
|
||||
---
|
||||
|
||||
Added method `listProjectsByWorkspace` for retrieving projects by workspace
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend-module-bitbucket-cloud': patch
|
||||
'@backstage/plugin-bitbucket-cloud-common': patch
|
||||
---
|
||||
|
||||
Add support for `autocomplete` handler to provide autocomplete options for `RepoUrlPicker`
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/integration': minor
|
||||
---
|
||||
|
||||
Added support for access tokens to Bitbucket Cloud
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-bitbucket-cloud-common': patch
|
||||
---
|
||||
|
||||
Added method `listWorkspaces` for retrieving workspaces
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': minor
|
||||
'@backstage/plugin-scaffolder-node': patch
|
||||
---
|
||||
|
||||
Add support for `autocomplete` extension point to provide additional `autocomplete` handlers
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
Added endpoint for autocompleting provider resources (currently only supports Bitbucket)
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-react': patch
|
||||
---
|
||||
|
||||
Added method `autocomplete` to interface `ScaffolderApi`
|
||||
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-react': minor
|
||||
'@backstage/plugin-scaffolder': minor
|
||||
---
|
||||
|
||||
Add support for `bitbucketCloud` autocomplete in `RepoUrlPicker`
|
||||
@@ -186,7 +186,7 @@ export type BitbucketCloudIntegrationConfig = {
|
||||
apiBaseUrl: string;
|
||||
username?: string;
|
||||
appPassword?: string;
|
||||
accessToken?: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
// @public @deprecated
|
||||
|
||||
@@ -50,7 +50,7 @@ export type BitbucketCloudIntegrationConfig = {
|
||||
/**
|
||||
* The access token to use for requests to Bitbucket Cloud (bitbucket.org).
|
||||
*/
|
||||
accessToken?: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -139,11 +139,10 @@ export class BitbucketCloudClient {
|
||||
'utf8',
|
||||
);
|
||||
headers.Authorization = `Basic ${buffer.toString('base64')}`;
|
||||
} else if (this.config.token) {
|
||||
headers.Authorization = `Bearer ${this.config.token}`;
|
||||
}
|
||||
|
||||
if (this.config.accessToken)
|
||||
headers.Authorization = `Bearer ${this.config.accessToken}`;
|
||||
|
||||
return headers;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ describe('handleAutocompleteRequest', () => {
|
||||
});
|
||||
|
||||
expect(fromConfig).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ accessToken }),
|
||||
expect.objectContaining({ token: accessToken }),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ export async function handleAutocompleteRequest({
|
||||
const client = BitbucketCloudClient.fromConfig({
|
||||
host: 'bitbucket.org',
|
||||
apiBaseUrl: 'https://api.bitbucket.org/2.0',
|
||||
accessToken: token,
|
||||
token,
|
||||
});
|
||||
|
||||
switch (resource) {
|
||||
|
||||
Reference in New Issue
Block a user