Skip to content

Commit

Permalink
meta: show PR/issue title on review-wanted
Browse files Browse the repository at this point in the history
PR-URL: #55606
Refs: https://openjs-foundation.slack.com/archives/C019Y2T6STH/p1730308054959239?thread_ts=1730296053.898089&cid=C019Y2T6STH
Reviewed-By: Jacob Smith <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Jake Yuesong Li <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
  • Loading branch information
RedYetiDev authored Nov 1, 2024
1 parent d83e9fa commit 413975a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/notify-on-review-wanted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 413975a

Please sign in to comment.