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 51d097410b..fe79935a1d 100644 --- a/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts +++ b/plugins/scaffolder-backend-module-bitbucket-server/src/actions/bitbucketServerPullRequest.ts @@ -237,7 +237,7 @@ const getDefaultBranch = async (opts: { } return defaultBranch; }; -const isApiBaseUrlHttps = (apiBaseUrl: string) : boolean => { +const isApiBaseUrlHttps = (apiBaseUrl: string): boolean => { const url = new URL(apiBaseUrl); return url.protocol === 'https:'; }; @@ -406,7 +406,9 @@ export function createPublishBitbucketServerPullRequestAction(options: { }); const isHttps: boolean = isApiBaseUrlHttps(apiBaseUrl); - const remoteUrl = `${isHttps ? 'https' : 'http' }://${host}/scm/${project}/${repo}.git`; + const remoteUrl = `${ + isHttps ? 'https' : 'http' + }://${host}/scm/${project}/${repo}.git`; const auth = authConfig.token ? {