Skip to content

Commit db34bba

Browse files
committed
chore: filter node prs by base branch
This is a fix to allow multiple Node PRs to be open. Previously the script would attempt to edit an existing PR but PRs to different branches were getting incorrectly edited.
1 parent 4f95a27 commit db34bba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/create-node-pr.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ const main = async (spec, branch = 'main', opts) => withTempDir(CWD, async (tmpD
228228
const npmPrs = await gh.json(
229229
...nodePrArgs, 'list',
230230
'-S', `in:title "${npmMessage('')}"`,
231+
'--base', nodeBranch,
231232
'number,title,url'
232233
)
233234

0 commit comments

Comments
 (0)