chore: updating changesets and api-reports

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-24 13:18:14 +02:00
parent b5a988f0c3
commit b5deed0c1b
16 changed files with 29 additions and 42 deletions
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder': minor
---
Added autocompletion for Bitbucket Cloud
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-bitbucket-cloud-common': patch
---
Added support for access tokens
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/integration': minor
---
Add support for `token` for `bitbucketCloud` integration
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-bitbucket-cloud-common': patch
---
Added method `listProjectsByWorkspace` for retrieving projects by workspace
+6
View File
@@ -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`
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/integration': minor
---
Added support for access tokens to Bitbucket Cloud
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-bitbucket-cloud-common': patch
---
Added method `listWorkspaces` for retrieving workspaces
+6
View File
@@ -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
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Added endpoint for autocompleting provider resources (currently only supports Bitbucket)
-5
View File
@@ -1,5 +0,0 @@
---
'@backstage/plugin-scaffolder-react': patch
---
Added method `autocomplete` to interface `ScaffolderApi`
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/plugin-scaffolder-react': minor
'@backstage/plugin-scaffolder': minor
---
Add support for `bitbucketCloud` autocomplete in `RepoUrlPicker`
+1 -1
View File
@@ -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;
}
}
@@ -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) {