Repository navigation
Commit 81a901c
authored
chore: recognize prefixed Node.js PR titles (#9915)
## Summary
- recognize existing Node.js npm update PRs with branch prefixes such as
`[v22.x]`
- preserve an existing PR title when updating it
## Background
The create-node-pr workflow successfully regenerated and force-pushed
nodejs/node#64884, but then failed because the existing-PR parser
treated `[v22.x] 10.9.9` as the npm version. It attempted to create a
duplicate PR instead of editing the existing one.
This extracts the version following the canonical `deps: upgrade npm to`
text regardless of any title prefix. Existing base-branch filtering
continues to distinguish PRs targeting different Node.js release lines.
Reproduction: https://github.com/npm/cli/actions/runs/32768286326
Copilot-Session: 14a9626a-4d0e-4be3-b06c-b6676ecb38951 parent d6c6122 commit 81a901c
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | 250 | | |
| |||
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
262 | | - | |
| 266 | + | |
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| |||
0 commit comments