File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,13 @@ jobs:
155
155
else if (name === 'mingw-w64-pcre2') body = `See https://github.com/PCRE2Project/pcre2/blob/pcre2-${version}/ChangeLog for details.`
156
156
157
157
const terms = 'type:issue repo:git-for-windows/git state:open author:app/github-actions label:component-update'
158
- const { data } = await github.rest.search.issuesAndPullRequests({
159
- q: `"[New ${name.replace(/^mingw-w64-/, '')} version]" (${version} OR v${version}) in:title ${terms}`,
160
- })
161
- if (data.total_count) body = `${body ? `${body}\n\n` : ''}This closes ${data.items[0].html_url}`
158
+ const [verb, q] = name === 'msys2-runtime'
159
+ ? ['corresponds to', `type:pr repo:git-for-windows/msys2-runtime state:open ${version}`]
160
+ : ['closes', `"[New ${name.replace(/^mingw-w64-/, '')} version]" (${version} OR v${version}) in:title ${terms}`]
161
+ } else {
162
+ const { data } = await github.rest.search.issuesAndPullRequests({ q })
163
+ if (data.total_count) body = `${body ? `${body}\n\n` : ''}This ${verb} ${data.items[0].html_url}`
164
+ }
162
165
} catch (e) {
163
166
console.log(e)
164
167
}
You can’t perform that action at this time.
0 commit comments