- introduce new MERGE_SHA placeholder support into template for PRs (and commit SHA for commit mode)

- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/552
This commit is contained in:
Mike Penz
2021-10-22 22:18:06 +02:00
parent 3466e55ab2
commit f93f67fad5
6 changed files with 30 additions and 7 deletions
+1
View File
@@ -246,6 +246,7 @@ function fillTemplate(pr: PullRequestInfo, template: string): string {
/\${{MERGED_AT}}/g,
pr.mergedAt.toISOString()
)
transformed = transformed.replace(/\${{MERGE_SHA}}/g, pr.mergeCommitSha)
transformed = transformed.replace(/\${{AUTHOR}}/g, pr.author)
transformed = transformed.replace(
/\${{LABELS}}/g,