-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from dscho/fix-pcre2-relnotes
Fix PCRE2 `/add release note`
- Loading branch information
Showing
3 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,13 +84,20 @@ href="[email protected]/">cygwin 3.4.7-1</a></b> | |
</pre>[... even more stuff...]</body></html>` | ||
} | ||
const missingURL = 'https://wingit.blob.core.windows.net/x86-64/curl-8.1.2-1-x86_64.pkg.tar.xz' | ||
const missingAarch64URL = 'https://wingit.blob.core.windows.net/aarch64/mingw-w64-clang-aarch64-curl-8.1.2-1-any.pkg.tar.xz' | ||
const missingMinTTYURL = 'https://wingit.blob.core.windows.net/i686/mintty-1~3.6.5-1-i686.pkg.tar.xz' | ||
const bogus32BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/i686/msys2-runtime-3.4.9-1-i686.pkg.tar.xz' | ||
const bogus64BitMSYS2RuntimeURL = 'https://wingit.blob.core.windows.net/x86-64/msys2-runtime-3.3-3.3.7-1-x86_64.pkg.tar.xz' | ||
const missingOpenSSHURL = 'https://wingit.blob.core.windows.net/i686/openssh-9.5p1-1-i686.pkg.tar.xz' | ||
const missingBashURL = 'https://wingit.blob.core.windows.net/x86-64/bash-5.2.020-1-x86_64.pkg.tar.xz' | ||
const mockDoesURLReturn404 = jest.fn(url => [ | ||
missingURL, missingMinTTYURL, bogus32BitMSYS2RuntimeURL, bogus64BitMSYS2RuntimeURL, missingOpenSSHURL, missingBashURL | ||
missingURL, | ||
missingAarch64URL, | ||
missingMinTTYURL, | ||
bogus32BitMSYS2RuntimeURL, | ||
bogus64BitMSYS2RuntimeURL, | ||
missingOpenSSHURL, | ||
missingBashURL | ||
].includes(url)) | ||
jest.mock('../GitForWindowsHelper/https-request', () => { | ||
return { | ||
|
@@ -204,10 +211,20 @@ 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 () => { | ||
expect(await getMissingDeployments('curl', '8.1.2')).toEqual([missingURL]) | ||
expect(await getMissingDeployments('curl', '8.1.2')).toEqual([missingURL, missingAarch64URL]) | ||
expect(await getMissingDeployments('mintty', '3.6.5')).toEqual([missingMinTTYURL]) | ||
expect(await getMissingDeployments('msys2-runtime', '3.4.9')).toEqual([]) | ||
expect(await getMissingDeployments('msys2-runtime-3.3', '3.3.7')).toEqual([]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters