- expand custom assignment and add testcase to verify ability to construct custom categories involving states of PRs

This commit is contained in:
Mike Penz
2022-04-08 11:00:40 +02:00
parent 6211ea4995
commit f60b8b4167
6 changed files with 57 additions and 10 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ function fillTemplate(pr: PullRequestInfo, template: string): string {
transformed = transformed.replace(/\${{AUTHOR}}/g, pr.author)
transformed = transformed.replace(
/\${{LABELS}}/g,
[...pr.labels]?.filter(l => !l.startsWith('##rcba-'))?.join(', ') || ''
[...pr.labels]?.filter(l => !l.startsWith('--rcba-'))?.join(', ') || ''
)
transformed = transformed.replace(/\${{MILESTONE}}/g, pr.milestone || '')
transformed = transformed.replace(/\${{BODY}}/g, pr.body)