From 143e5c314054d9a5ca55c5c2c82871dea4d6b4c6 Mon Sep 17 00:00:00 2001 From: matt korwel Date: Thu, 18 Sep 2025 09:43:35 -0700 Subject: [PATCH] better logging (#8712) --- .github/workflows/release-patch-1-create-pr.yml | 16 ++++++++++++++++ .github/workflows/release-patch-from-comment.yml | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-patch-1-create-pr.yml b/.github/workflows/release-patch-1-create-pr.yml index e8743063b3..765661d1e6 100644 --- a/.github/workflows/release-patch-1-create-pr.yml +++ b/.github/workflows/release-patch-1-create-pr.yml @@ -24,6 +24,10 @@ on: required: false type: 'string' default: 'main' + original_pr: + description: 'The original PR number to comment back on.' + required: false + type: 'string' jobs: create-patch: @@ -68,6 +72,18 @@ jobs: run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=stable --dry-run=${{ github.event.inputs.dry_run }}' - name: 'Create Patch for Preview' + id: 'create_patch' env: GH_TOKEN: '${{ steps.generate_token.outputs.token }}' run: 'node scripts/create-patch-pr.js --commit=${{ github.event.inputs.commit }} --channel=${{ github.event.inputs.channel }} --dry-run=${{ github.event.inputs.dry_run }}' + + - name: 'Comment on Original PR' + if: '!inputs.dry_run && inputs.original_pr' + env: + GH_TOKEN: '${{ steps.generate_token.outputs.token }}' + run: | + gh pr comment ${{ github.event.inputs.original_pr }} --body "🚀 Patch PR created! + + The patch release PR for this change has been created. Please review and approve it to complete the patch release: + + View all patch PRs: https://github.com/${{ github.repository }}/pulls?q=is%3Apr+is%3Aopen+label%3Apatch" diff --git a/.github/workflows/release-patch-from-comment.yml b/.github/workflows/release-patch-from-comment.yml index cfecff7297..01e0f01276 100644 --- a/.github/workflows/release-patch-from-comment.yml +++ b/.github/workflows/release-patch-from-comment.yml @@ -62,7 +62,8 @@ jobs: inputs: { commit: '${{ steps.pr_status.outputs.MERGE_COMMIT_SHA }}', channel: args.channel || 'stable', - dry_run: args.dry_run || 'false' + dry_run: args.dry_run || 'false', + original_pr: '${{ github.event.issue.number }}' } })