- add logic which cleans up custom placeholders with the [] syntax which were not matched

This commit is contained in:
Mike Penz
2022-07-29 16:40:39 +00:00
committed by GitHub
parent fba9cdb51d
commit 74dd88f60c
4 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ it('Extract custom placeholder from PR body and replace in global template', asy
}
}
]
customConfig.template = "${{CHANGELOG}}\n\n${{C_PLACEHOLER_2[2]}}\n\n${{C_PLACEHOLER_2[*]}}"
customConfig.template = "${{CHANGELOG}}\n\n${{C_PLACEHOLER_2[2]}}\n\n${{C_PLACEHOLER_2[*]}}${{C_PLACEHOLDER_1[7]}}${{C_PLACEHOLER_2[1493]}}"
customConfig.pr_template = "${{BODY}} ----> ${{C_PLACEHOLDER_1}}"
const resultChangelog = buildChangelog(DefaultDiffInfo, mergedPullRequests, {