From fdc2cd438ec982e89d4061e9f034b7e680753c1f Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 15 Feb 2024 12:51:02 +0700 Subject: [PATCH] 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. --- resources/build/version/src/fixupHistory.ts | 4 ++-- resources/build/version/src/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/build/version/src/fixupHistory.ts b/resources/build/version/src/fixupHistory.ts index 9f48f4851d..2183b11f70 100644 --- a/resources/build/version/src/fixupHistory.ts +++ b/resources/build/version/src/fixupHistory.ts @@ -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 => { // @@ -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; diff --git a/resources/build/version/src/index.ts b/resources/build/version/src/index.ts index 31e1a2cd04..16f1583e39 100644 --- a/resources/build/version/src/index.ts +++ b/resources/build/version/src/index.ts @@ -108,7 +108,7 @@ const main = async (): Promise => { 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`); }