Skip to content

Commit

Permalink
update helper-bot action for gh-helpers v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Mar 28, 2024
1 parent 05ecf36 commit 8f77520
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/helper-bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.')
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 8f77520

Please sign in to comment.