From cc1a02fbe6bc730b6b920cfdd0caf6f5b9ff4406 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 8 Jul 2024 23:54:44 +0200 Subject: [PATCH] fixup! open-pr: support `msys2-runtime` PRs --- .github/workflows/open-pr.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/open-pr.yml b/.github/workflows/open-pr.yml index 51fc2e18..768d77f8 100644 --- a/.github/workflows/open-pr.yml +++ b/.github/workflows/open-pr.yml @@ -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) }