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:
@@ -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