chore: workaround release inc build block

Fixes #10721.

This arose partly because of the change from release- to release@ in at
17.0.30-alpha (triggered by sentry req). Will require a corresponding
patch to CI script to pass the --from and --to parameters.
This commit is contained in:
Marc Durdin 2024-02-15 12:51:02 +07:00
parent d750636d5d
commit fdc2cd438e
2 changed files with 3 additions and 3 deletions

View file

@ -184,7 +184,7 @@ export const sendCommentToPullRequestAndRelatedIssues = async (
*/
export const fixupHistory = async (
octokit: GitHub, base: string, force: boolean, writeGithubComment: boolean
octokit: GitHub, base: string, force: boolean, writeGithubComment: boolean, from?: string, to?: string
): Promise<number> => {
//
@ -194,7 +194,7 @@ export const fixupHistory = async (
let pulls: PRInformation[] = [];
try {
pulls = await reportHistory(octokit, base, force, false);
pulls = await reportHistory(octokit, base, force, false, from, to);
} catch(e) {
logWarning(String(e));
return -1;

View file

@ -108,7 +108,7 @@ const main = async (): Promise<void> => {
if(argv._.includes('history')) {
logInfo(`# Validating history for ${version}`);
changeCount = await fixupHistory(octokit, argv.base, argv.force, argv['write-github-comment']);
changeCount = await fixupHistory(octokit, argv.base, argv.force, argv['write-github-comment'], argv.from, argv.to);
logInfo(`# ${changeCount} change(s) found for ${version}\n`);
}