From 8f77520c23631de94aafe25a51b7b31a6d3dd4aa Mon Sep 17 00:00:00 2001 From: extremeheat Date: Thu, 28 Mar 2024 16:15:53 -0400 Subject: [PATCH] update helper-bot action for gh-helpers v0.2 --- .github/helper-bot/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/helper-bot/index.js b/.github/helper-bot/index.js index 6eaf6f00f..abe67afa9 100644 --- a/.github/helper-bot/index.js +++ b/.github/helper-bot/index.js @@ -51,7 +51,7 @@ async function updateManifestPC () { const latestVersionIsSnapshot = latestVersionData.type !== 'release' const title = `Support Minecraft PC ${latestVersion}` - const issueStatus = await helper.getIssueStatus({ title }) + const issueStatus = await helper.findIssue({ titleIncludes }) || {} if (latestVersionIsSnapshot) { // don't make issues for snapshots @@ -61,7 +61,7 @@ async function updateManifestPC () { } } else { if (supportedVersions.pc.includes(latestVersion)) { - if (issueStatus.open) { + if (issueStatus.isOpen) { helper.close(issueStatus.id, `Closing as PC ${latestVersion} is now supported`) } console.log('Latest PC version is supported.') @@ -92,7 +92,7 @@ async function updateManifestPC () { } } - if (!latestVersionIsSnapshot && !issueStatus.open && !issueStatus.closed) { + if (!latestVersionIsSnapshot && !issueStatus.isOpen && !issueStatus.isClosed) { console.log('Opening issue', versionJson) const issuePayload = buildFirstIssue(title, latestVersionData, versionJson)