From 20759af9796c61341da2012d427b9771125e403b Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Tue, 13 Oct 2020 13:41:03 -0700 Subject: [PATCH] Regenerate action JS files (#6306) --- .github/actions/Locker/Locker.js | 2 +- .github/actions/common/utils.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/actions/Locker/Locker.js b/.github/actions/Locker/Locker.js index be5206c7bf..76e58634a5 100644 --- a/.github/actions/Locker/Locker.js +++ b/.github/actions/Locker/Locker.js @@ -17,7 +17,7 @@ class Locker extends ActionBase_1.ActionBase { async run() { const closedTimestamp = utils_1.daysAgoToHumanReadbleDate(this.daysSinceClose); const updatedTimestamp = utils_1.daysAgoToHumanReadbleDate(this.daysSinceUpdate); - const query = this.buildQuery((this.daysSinceClose ? `closed:<${updatedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked"); + const query = this.buildQuery((this.daysSinceClose ? `closed:<${closedTimestamp} ` : "") + (this.daysSinceUpdate ? `updated:<${updatedTimestamp} ` : "") + "is:closed is:unlocked"); for await (const page of this.github.query({ q: query })) { await Promise.all(page.map(async (issue) => { const hydrated = await issue.getIssue(); diff --git a/.github/actions/common/utils.js b/.github/actions/common/utils.js index 72dfb59179..7d71ab6a0c 100644 --- a/.github/actions/common/utils.js +++ b/.github/actions/common/utils.js @@ -57,11 +57,8 @@ exports.getRateLimit = async (token) => { exports.errorLoggingIssue = (() => { try { const repo = github_1.context.repo.owner.toLowerCase() + '/' + github_1.context.repo.repo.toLowerCase(); - if (repo === 'microsoft/vscode' || repo === 'microsoft/vscode-remote-release') { - return { repo: 'vscode', owner: 'Microsoft', issue: 93814 }; - } - else if (/microsoft\//.test(repo)) { - return { repo: 'vscode-internalbacklog', owner: 'Microsoft', issue: 974 }; + if (repo === 'microsoft/vscode-cpptools') { + return { repo: 'vscode-cpptools', owner: 'Microsoft', issue: 6282 }; } else if (exports.getInput('errorLogIssueNumber')) { return { ...github_1.context.repo, issue: +exports.getRequiredInput('errorLogIssueNumber') };