Skip to content

Commit 147c536

Browse files
committed
guess release notes: special-case cURL
We would like to show useful links in the release notes for new cURL versions, just like we did before we switched from using `please.sh upgrade curl` to branch deployments: https://github.com/git-for-windows/build-extra/blob/d488d45e052b/please.sh#L1541-L1544 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent bb7a15d commit 147c536

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

GitForWindowsHelper/component-updates.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const guessReleaseNotes = async (context, issue) => {
6767

6868
const matchURL = async () => {
6969
if (package_name === 'perl') return `http://search.cpan.org/dist/perl-${version}/pod/perldelta.pod`
70+
if (package_name === 'curl') return `https://curl.se/changes.html#${version.replaceAll('.', '_')}`
7071

7172
if (!issue.pull_request) return matchURLInIssue(issue)
7273

__tests__/component-updates.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,13 @@ http://www.gnutls.org/news.html#2023-02-10`
8787
type: 'feature',
8888
message: 'Comes with [Perl v5.36.1](http://search.cpan.org/dist/perl-5.36.1/pod/perldelta.pod).'
8989
})
90+
91+
expect(await guessReleaseNotes(context, {
92+
labels: [{ name: 'component-update' }],
93+
title: '[New curl version] curl-8_1_1',
94+
body: `\nhttps://github.com/curl/curl/releases/tag/curl-8_1_1`
95+
})).toEqual({
96+
type: 'feature',
97+
message: 'Comes with [cURL v8.1.1](https://curl.se/changes.html#8_1_1).'
98+
})
9099
})

0 commit comments

Comments
 (0)