File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222jobs :
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
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));
You can’t perform that action at this time.
0 commit comments