Skip to content

Commit 4cca54b

Browse files
avivkellerruyadorno
authored andcommitted
meta: show PR/issue title on review-wanted
PR-URL: #55606 Refs: https://openjs-foundation.slack.com/archives/C019Y2T6STH/p1730308054959239?thread_ts=1730296053.898089&cid=C019Y2T6STH Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent 4caaeb4 commit 4cca54b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/notify-on-review-wanted.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,20 @@ jobs:
1616
steps:
1717
- name: Determine PR or Issue
1818
id: define-message
19+
env:
20+
TITLE_ISSUE: ${{ github.event.issue.title }}
21+
TITLE_PR: ${{ github.event.pull_request.title }}
1922
run: |
2023
if [[ -n "${{ github.event.pull_request.number }}" ]]; then
2124
number="${{ github.event.pull_request.number }}"
2225
link="https://github.com/${{ github.repository }}/pull/$number"
2326
echo "message=The PR (#$number) requires review from Node.js maintainers. See: $link" >> "$GITHUB_OUTPUT"
24-
echo "title=${{ github.actor }} asks for attention on pull request #$number" >> "$GITHUB_OUTPUT"
27+
echo "title=$TITLE_PR" >> "$GITHUB_OUTPUT"
2528
else
2629
number="${{ github.event.issue.number }}"
2730
link="https://github.com/${{ github.repository }}/issues/$number"
2831
echo "message=The issue (#$number) requires review from Node.js maintainers. See: $link" >> "$GITHUB_OUTPUT"
29-
echo "title=${{ github.actor }} asks for attention on issue #$number" >> "$GITHUB_OUTPUT"
32+
echo "title=$TITLE_ISSUE" >> "$GITHUB_OUTPUT"
3033
fi
3134
3235
- name: Slack Notification

0 commit comments

Comments
 (0)