From 1b1dadc92bc0bd783663dc2df7501f2e23d3b675 Mon Sep 17 00:00:00 2001 From: Alisson Fabiano Date: Mon, 29 Aug 2022 09:37:58 +0100 Subject: [PATCH] chore: adjust changeset and removed dryRun suports Signed-off-by: Alisson Fabiano --- .changeset/pink-moons-smell.md | 41 +------------------ .../actions/builtin/publish/azure.ts | 1 - 2 files changed, 1 insertion(+), 41 deletions(-) diff --git a/.changeset/pink-moons-smell.md b/.changeset/pink-moons-smell.md index 9c74340f74..77475295be 100644 --- a/.changeset/pink-moons-smell.md +++ b/.changeset/pink-moons-smell.md @@ -2,43 +2,4 @@ '@backstage/plugin-scaffolder-backend': minor --- -Added repositoryId return when creating a repository in Azure - -```diff -output: { - type: 'object', - properties: { - remoteUrl: { - title: 'A URL to the repository with the provider', - type: 'string', - }, - repoContentsUrl: { - title: 'A URL to the root of the repository', - type: 'string', - }, -+ repositoryId: { -+ title: 'The Id of the created repository', -+ type: 'string', -+ }, - }, -}, - - -const remoteUrl = returnedRepo.remoteUrl; - -if (!remoteUrl) { - throw new InputError( - 'No remote URL returned from create repository for Azure', - ); -} -+const repositoryId = returnedRepo.id; - -+if (!repositoryId) { -+ throw new InputError('No Id returned from create repository for Azure'); -+} - - -ctx.output('remoteUrl', remoteUrl); -ctx.output('repoContentsUrl', repoContentsUrl); -+ctx.output('repositoryId', repositoryId); -``` +Added `repositoryId` output when create a repository in Azure diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/azure.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/azure.ts index 12624eac54..60b13b717d 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/azure.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/azure.ts @@ -44,7 +44,6 @@ export function createPublishAzureAction(options: { gitAuthorName?: string; gitAuthorEmail?: string; }>({ - supportsDryRun: true, id: 'publish:azure', description: 'Initializes a git repository of the content in the workspace, and publishes it to Azure.',