Skip to content

Commit

Permalink
fixup! open-pr: support msys2-runtime PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Jul 8, 2024
1 parent a381cfb commit cc1a02f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ jobs:
const [verb, q] = name === 'msys2-runtime'
? ['corresponds to', `type:pr repo:git-for-windows/msys2-runtime state:open ${version}`]
: ['closes', `"[New ${name.replace(/^mingw-w64-/, '')} version]" (${version} OR v${version}) in:title ${terms}`]
} else {
const { data } = await github.rest.search.issuesAndPullRequests({ q })
if (data.total_count) body = `${body ? `${body}\n\n` : ''}This ${verb} ${data.items[0].html_url}`
}
const { data } = await github.rest.search.issuesAndPullRequests({ q })
if (data.total_count) body = `${body ? `${body}\n\n` : ''}This ${verb} ${data.items[0].html_url}`
} catch (e) {
console.log(e)
}
Expand Down

0 comments on commit cc1a02f

Please sign in to comment.