Skip to content

Commit

Permalink
Fix /add relnote for PCRE2 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Feb 21, 2025
1 parent 1300a1b commit 8061e70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GitForWindowsHelper/component-updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const guessComponentUpdateDetails = (title, body) => {
else if (['clang', 'llvm', 'mingw-w64-clang'].includes(package_name)) package_name = 'mingw-w64-llvm'

version = version
.replace(/^(GCM |openssl-|OpenSSL_|v|V_|GnuTLS |tig-|Heimdal |cygwin-|PCRE2-|Bash-|curl-|gnupg-|is-)/, '')
.replace(/^(GCM |openssl-|OpenSSL_|v|V_|GnuTLS |tig-|Heimdal |cygwin-|PCRE2-|Bash-|curl-|gnupg-|is-|pcre2-)/, '')
.replace(/\s+patch\s+/, '.')
.replace(/_/g, '.')
.replace(/-release$/, '')
Expand Down
10 changes: 10 additions & 0 deletions __tests__/component-updates.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,16 @@ http://www.gnutls.org/news.html#2023-02-10`
package: 'msys2-runtime',
version: '3.4.7'
})
expect(await guessReleaseNotes(context, {
labels: [{ name: 'component-update' }],
title: '[New pcre2 version] pcre2-10.45',
body: `\n\nhttps://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.45`
})).toEqual({
type: 'feature',
message: 'Comes with [PCRE2 v10.45](https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.45).',
package: 'pcre2',
version: '10.45'
})
})

test('getMissingDeployments()', async () => {
Expand Down

0 comments on commit 8061e70

Please sign in to comment.