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'; }; /**