diff --git a/.github/workflows/notify-on-review-wanted.yml b/.github/workflows/notify-on-review-wanted.yml index 471455e3bf6..6521318a2dc 100644 --- a/.github/workflows/notify-on-review-wanted.yml +++ b/.github/workflows/notify-on-review-wanted.yml @@ -16,17 +16,20 @@ jobs: steps: - name: Determine PR or Issue id: define-message + env: + TITLE_ISSUE: ${{ github.event.issue.title }} + TITLE_PR: ${{ github.event.pull_request.title }} run: | if [[ -n "${{ github.event.pull_request.number }}" ]]; then number="${{ github.event.pull_request.number }}" link="https://github.com/${{ github.repository }}/pull/$number" echo "message=The PR (#$number) requires review from Node.js maintainers. See: $link" >> "$GITHUB_OUTPUT" - echo "title=${{ github.actor }} asks for attention on pull request #$number" >> "$GITHUB_OUTPUT" + echo "title=$TITLE_PR" >> "$GITHUB_OUTPUT" else number="${{ github.event.issue.number }}" link="https://github.com/${{ github.repository }}/issues/$number" echo "message=The issue (#$number) requires review from Node.js maintainers. See: $link" >> "$GITHUB_OUTPUT" - echo "title=${{ github.actor }} asks for attention on issue #$number" >> "$GITHUB_OUTPUT" + echo "title=$TITLE_ISSUE" >> "$GITHUB_OUTPUT" fi - name: Slack Notification