File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 required : false
2525 type : ' string'
2626 default : ' main'
27+ original_pr :
28+ description : ' The original PR number to comment back on.'
29+ required : false
30+ type : ' string'
2731
2832jobs :
2933 create-patch :
6872 run : ' node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=stable --dry-run=${{ github.event.inputs.dry_run }}'
6973
7074 - name : ' Create Patch for Preview'
75+ id : ' create_patch'
7176 env :
7277 GH_TOKEN : ' ${{ steps.generate_token.outputs.token }}'
7378 run : ' node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}'
79+
80+ - name : ' Comment on Original PR'
81+ if : ' !inputs.dry_run && inputs.original_pr'
82+ env :
83+ GH_TOKEN : ' ${{ steps.generate_token.outputs.token }}'
84+ run : |
85+ gh pr comment ${{ github.event.inputs.original_pr }} --body "🚀 Patch PR created!
86+
87+ The patch release PR for this change has been created. Please review and approve it to complete the patch release:
88+
89+ View all patch PRs: https://github.com/${{ github.repository }}/pulls?q=is%3Apr+is%3Aopen+label%3Apatch"
Original file line number Diff line number Diff line change 6262 inputs: {
6363 commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}',
6464 channel: args.channel || 'stable',
65- dry_run: args.dry_run || 'false'
65+ dry_run: args.dry_run || 'false',
66+ original_pr: '${{ github.event.issue.number }}'
6667 }
6768 })
6869
You can’t perform that action at this time.
0 commit comments