From f062a98710cb35cee316a699ae303defa77c48c5 Mon Sep 17 00:00:00 2001 From: Kevin L Date: Mon, 10 Jun 2024 12:57:46 -0400 Subject: [PATCH] Use webUrl instead of remoteUrl to set the value of repoContentsUrl. Signed-off-by: Kevin L --- .../src/actions/azure.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/scaffolder-backend-module-azure/src/actions/azure.ts b/plugins/scaffolder-backend-module-azure/src/actions/azure.ts index e90cfeade4..bd75cedc65 100644 --- a/plugins/scaffolder-backend-module-azure/src/actions/azure.ts +++ b/plugins/scaffolder-backend-module-azure/src/actions/azure.ts @@ -187,9 +187,13 @@ export function createPublishAzureAction(options: { throw new InputError('No Id returned from create repository for Azure'); } - // blam: Repo contents is serialized into the path, - // so it's just the base path I think - const repoContentsUrl = remoteUrl; + const repoContentsUrl = returnedRepo.webUrl; + + if (!repoContentsUrl) { + throw new InputError( + 'No web URL returned from create repository for Azure', + ); + } const gitAuthorInfo = { name: gitAuthorName