Skip to content

Commit 3b524cb

Browse files
committed
meta: automate description requests when notable change label is added
PR-URL: #47078 Fixes: nodejs/Release#821 Reviewed-By: Beth Griggs <bethanyngriggs@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 816e215 commit 3b524cb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/comment-labeled.yml

+15
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ env:
1010
This issue/PR was marked as stalled, it will be automatically closed in 30 days.
1111
If it should remain open, please leave a comment explaining why it should remain open.
1212
FAST_TRACK_MESSAGE: Fast-track has been requested by @${{ github.actor }}. Please 👍 to approve.
13+
NOTABLE_CHANGE_MESSAGE: |
14+
The ${{ github.event.label.url }} label has been added by @${{ github.actor }}.
15+
16+
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment.
1317
1418
permissions:
1519
contents: read
@@ -38,3 +42,14 @@ jobs:
3842
env:
3943
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4044
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE"
45+
46+
notable-change:
47+
permissions:
48+
pull-requests: write
49+
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'notable-change'
50+
runs-on: ubuntu-latest
51+
steps:
52+
- name: Add notable change description
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$NOTABLE_CHANGE_MESSAGE"

0 commit comments

Comments
 (0)