Skip to content

Commit d8d6fe1

Browse files
committed
chore: append target branch to branch name when creating Node PR
1 parent 974a5fc commit d8d6fe1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/create-node-pr.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ const main = async (spec, branch = 'main', opts) => withTempDir(CWD, async (tmpD
155155
const npmVersion = semver.parse(mani.version)
156156
const npmHost = hgi.fromUrl(NODE_FORK)
157157
const npmTag = `v${npmVersion}`
158-
const npmBranch = `npm-${npmTag}`
158+
// use the target branch as part of the name so we can create multiple PRs for
159+
// the same npm version targeting different Node branches at the same time
160+
const npmBranch = `npm-${npmTag}-${branch}`
159161
const npmRemoteUrl = tokenRemoteUrl({ host: npmHost, token: GITHUB_TOKEN })
160162
const npmMessage = (v = npmVersion) => `deps: upgrade npm to ${v}`
161163

0 commit comments

Comments
 (0)