From f5436329884007ea1e04aef07817a200bdb1121f Mon Sep 17 00:00:00 2001 From: Matthew Bednarski Date: Mon, 16 Sep 2024 18:06:35 +0200 Subject: [PATCH] fix: wrong url instantiation Signed-off-by: Matthew Bednarski --- .../src/actions/bitbucketServerPullRequest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts b/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts index 2ff06aa45d..ed7c0411b5 100644 --- a/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts +++ b/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts @@ -238,7 +238,7 @@ const getDefaultBranch = async (opts: { return defaultBranch; }; const parseProtocol = (apiBaseUrl: string) => { - const url = new Url(apiBaseUrl); + const url = new URL(apiBaseUrl); return url.protocol || 'https'; }; /**