Skip to content

Commit 7e14f8d

Browse files
authored
Merge branch 'twishabansal-patch-4' into test-workflow
2 parents 585686c + 6f25395 commit 7e14f8d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/mirror-changelog.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
add-release-notes:
24-
if: github.actor == 'twishabansal'
24+
if: github.actor == 'twishabansal' && startsWith(github.head_ref, 'test-workflow')
2525
runs-on: ubuntu-latest
2626
permissions:
2727
pull-requests: write
@@ -83,7 +83,13 @@ jobs:
8383
// Match and extract changelog item
8484
const itemMatch = trimmedLine.match(/^[*-]\s(.*)$/);
8585
if (itemMatch) {
86-
const originalContent = itemMatch[1];
86+
let originalContent = itemMatch[1];
87+
88+
// remove zero-width space character
89+
originalContent = originalContent.replace(/\u200B/g, '');
90+
91+
// Change issue links from #1234 to genai-toolbox#1234
92+
originalContent = originalContent.replace(/\[#(\d+)\](\([^)]+\))/g, '[genai-toolbox#$1]$2');
8793
const lineAsLowerCase = originalContent.toLowerCase();
8894
8995
const hasPrefix = prefixesToFilter.some(prefix => lineAsLowerCase.includes(prefix));

0 commit comments

Comments
 (0)