From b1ca7ab0a14867d34e248c0fed2e6d48f518e9b2 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Fri, 1 Nov 2024 14:32:48 -0400 Subject: [PATCH] meta: show PR/issue title on review-wanted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/55606 Refs: https://openjs-foundation.slack.com/archives/C019Y2T6STH/p1730308054959239?thread_ts=1730296053.898089&cid=C019Y2T6STH Reviewed-By: Jacob Smith Reviewed-By: Luigi Pinca Reviewed-By: Jake Yuesong Li Reviewed-By: Rafael Gonzaga Reviewed-By: Moshe Atlow Reviewed-By: Ulises Gascón --- .github/workflows/notify-on-review-wanted.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-on-review-wanted.yml b/.github/workflows/notify-on-review-wanted.yml index 471455e3bf6b28..6521318a2dce81 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