Skip to content

Commit 23885f6

Browse files
chore: improve backport PR creation and PR template text (#8705)
1 parent e6fea13 commit 23885f6

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following selections do not need to be completed if this PR only contains ch
1313
- [ ] TODO (before merge)
1414
- [ ] Tests included
1515
- [ ] Tests not necessary because:
16-
- Wrangler E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
16+
- Wrangler / Vite E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)
1717
- [ ] I don't know
1818
- [ ] Required
1919
- [ ] Not required because:

.github/workflows/open-v3-maintenance-prs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
FILES: ${{ steps.files.outputs.all }}
3131
PR_NUMBER: ${{ github.event.number }}
32+
PR_TITLE: ${{ toJson(github.event.pull_request.title) }}
3233
GH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
3334
LABELS: ${{ toJson(github.event.pull_request.labels.*.name) }}
3435
# - name: "Comment on PR with error details"

tools/deployments/open-v3-pr.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,18 @@ if (require.main === module) {
2121
try {
2222
// Open PR
2323
execSync(
24-
`gh pr create --base v3-maintenance --head v3-maintenance-${process.env.PR_NUMBER} --label "skip-pr-description-validation" --label "skip-v3-pr" --title "Backport #${process.env.PR_NUMBER} to Wrangler v3" --body "This is an automatically opened PR to backport patch changes from #${process.env.PR_NUMBER} to Wrangler v3"`
24+
[
25+
`gh`,
26+
`pr`,
27+
`create`,
28+
`--base`,
29+
`v3-maintenance`,
30+
`--head v3-maintenance-${process.env.PR_NUMBER}`,
31+
`--label "skip-pr-description-validation"`,
32+
`--label "skip-v3-pr"`,
33+
`--title "V3 Backport [#${process.env.PR_NUMBER}]: ${process.env.PR_TITLE?.slice(1, -1)}`,
34+
`--body "This is an automatically opened PR to backport patch changes from #${process.env.PR_NUMBER} to Wrangler v3"`,
35+
].join(" ")
2536
);
2637
} catch {
2738
// Ignore "PR already created failures"

0 commit comments

Comments
 (0)