Skip to content

Commit f5c6930

Browse files
authored
Merge pull request #9 from dscho/postelize-open-pr
open-pr: try harder to find a corresponding `component-update` ticket
2 parents a538b16 + ddb77f6 commit f5c6930

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/open-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,15 +180,15 @@ jobs:
180180
let body = ''
181181
try {
182182
const name = process.env.PACKAGE_TO_UPGRADE
183-
const version = `${name.match(/git-lfs/) ? 'v' : ''}${process.env.UPGRADE_TO_VERSION}`
183+
const version = process.env.UPGRADE_TO_VERSION
184184
185185
if (name === 'mintty') body = `See https://github.com/mintty/mintty/releases/tag/${version} for details.`
186186
else if (name === 'mingw-w64-git-lfs') body = `See https://github.com/git-lfs/git-lfs/releases/tag/${version} for details.`
187187
else if (name === 'mingw-w64-pcre2') body = `See https://github.com/PCRE2Project/pcre2/blob/pcre2-${version}/ChangeLog for details.`
188188
189189
const terms = 'type:issue repo:git-for-windows/git state:open author:app/github-actions label:component-update'
190190
const { data } = await github.rest.search.issuesAndPullRequests({
191-
q: `"[New ${name.replace(/^mingw-w64-/, '')} version]" ${version} in:title ${terms}`,
191+
q: `"[New ${name.replace(/^mingw-w64-/, '')} version]" (${version} OR v${version}) in:title ${terms}`,
192192
})
193193
if (data.total_count) body = `${body ? `${body}\n\n` : ''}This closes ${data.items[0].html_url}`
194194
} catch (e) {

0 commit comments

Comments
 (0)