From 25082217d6f4b7b595ba590ff43703d566872935 Mon Sep 17 00:00:00 2001 From: Bruce Bujon Date: Fri, 25 Apr 2025 10:56:26 +0200 Subject: [PATCH] =?UTF-8?q?feat(ci):=E2=80=AFClean=20up=20cherry-pick=20ta?= =?UTF-8?q?gs=20from=20generated=20changelog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/draft-release-notes-on-tag.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/draft-release-notes-on-tag.yaml b/.github/workflows/draft-release-notes-on-tag.yaml index a0fe798be5f..001db880ac7 100644 --- a/.github/workflows/draft-release-notes-on-tag.yaml +++ b/.github/workflows/draft-release-notes-on-tag.yaml @@ -125,7 +125,12 @@ jobs: } function cleanUpTitle(title) { // Remove tags between brackets - return title.replace(/\[[^\]]+\]/g, '') + title = title.replace(/\[[^\]]+\]/g, '') + // Remove cherry-pick prefix + if (title.startsWith('🍒 ') && title.includes(' - ')) { + title = title.substring(title.indexOf(' - ') + 3) + } + return title } function format(pullRequest) { var line = `${decorate(pullRequest)}${cleanUpTitle(pullRequest.title)} (#${pullRequest.number} - @${pullRequest.user.login}`