Change hardcoded master to $defaultBranch

Since we pass over the defaultBranch argument in our templates, this seems to break because of the hardcoded master values. Probably this affects other providers as well.

Signed-off-by: Simon Stamm <simon.stamm@tui.com>
This commit is contained in:
Simon Stamm
2021-09-15 11:45:00 +02:00
committed by Simon Stamm
parent e3b9e29bec
commit e3585f5221
@@ -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'),