Skip to content

Commit 23975ad

Browse files
authored
chore: backport changes to v3 with v3-backport branch prefix and label (#9283)
1 parent 16de0d5 commit 23975ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/deployments/open-v3-pr.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import parseChangeset from "@changesets/parse";
66
if (require.main === module) {
77
if (isWranglerPatch(process.env.FILES as string)) {
88
// Create a new branch for the v3 maintenance PR
9-
execSync(`git checkout -b v3-maintenance-${process.env.PR_NUMBER} -f`);
9+
execSync(`git checkout -b v3-backport-${process.env.PR_NUMBER} -f`);
1010

1111
execSync(
12-
`git rebase --onto origin/v3-maintenance origin/main v3-maintenance-${process.env.PR_NUMBER}`
12+
`git rebase --onto origin/v3-maintenance origin/main v3-backport-${process.env.PR_NUMBER}`
1313
);
1414

1515
execSync(`git push origin HEAD --force`);
@@ -26,6 +26,7 @@ if (require.main === module) {
2626
`--head v3-maintenance-${process.env.PR_NUMBER}`,
2727
`--label "skip-pr-description-validation"`,
2828
`--label "skip-v3-pr"`,
29+
`--label "v3-backport"`,
2930
`--title "V3 Backport [#${process.env.PR_NUMBER}]: ${process.env.PR_TITLE?.slice(1, -1)}"`,
3031
`--body "This is an automatically opened PR to backport patch changes from #${process.env.PR_NUMBER} to Wrangler v3"`,
3132
`--draft`,

0 commit comments

Comments
 (0)