Merge pull request #7187 from simonstamm/patch-1
Change hardcoded master to $defaultBranch
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-scaffolder-backend': patch
|
||||
---
|
||||
|
||||
Change hardcoded branch `master` to $defaultBranch in GitLab provider
|
||||
@@ -97,6 +97,7 @@ GraphQL
|
||||
graphviz
|
||||
Hackathons
|
||||
haproxy
|
||||
hardcoded
|
||||
Helidon
|
||||
Heroku
|
||||
hoc
|
||||
|
||||
@@ -127,7 +127,7 @@ export function createPublishGitlabAction(options: {
|
||||
});
|
||||
|
||||
const remoteUrl = (http_url_to_repo as string).replace(/\.git$/, '');
|
||||
const repoContentsUrl = `${remoteUrl}/-/blob/master`;
|
||||
const repoContentsUrl = `${remoteUrl}/-/blob/${defaultBranch}`;
|
||||
|
||||
const gitAuthorInfo = {
|
||||
name: config.getOptionalString('scaffolder.defaultAuthor.name'),
|
||||
|
||||
Reference in New Issue
Block a user