chore: add changesets for @backstage/plugin-scaffolder-backend and @backstage/plugin-scaffolder-react; update API reports; update tests of ActionsPage

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2024-06-13 15:30:00 +02:00
parent 8a03156d91
commit a1709aa4ee
5 changed files with 25 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Added endpoint for autocompleting provider resources (currently only supports Bitbucket)
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-react': patch
---
Added method `autocomplete` to interface `ScaffolderApi`
+7
View File
@@ -179,6 +179,13 @@ export type ReviewStepProps = {
// @public
export interface ScaffolderApi {
// (undocumented)
autocomplete(
token: string,
provider: string,
resource: string,
params?: Record<string, string>,
): Promise<string[]>;
cancelTask(taskId: string): Promise<void>;
// (undocumented)
dryRun?(options: ScaffolderDryRunOptions): Promise<ScaffolderDryRunResponse>;
+7
View File
@@ -502,6 +502,13 @@ export class ScaffolderClient implements ScaffolderApi_2 {
useLongPollingLogs?: boolean;
});
// (undocumented)
autocomplete(
token: string,
provider: string,
resource: string,
params?: Record<string, string>,
): Promise<string[]>;
// (undocumented)
cancelTask(taskId: string): Promise<void>;
// (undocumented)
dryRun(
@@ -33,6 +33,7 @@ const scaffolderApiMock: jest.Mocked<ScaffolderApi> = {
streamLogs: jest.fn(),
listActions: jest.fn(),
listTasks: jest.fn(),
autocomplete: jest.fn(),
};
const apis = TestApiRegistry.from([scaffolderApiRef, scaffolderApiMock]);