Skip to content

Commit 736c7fa

Browse files
committed
meta: automate description requests when notable change label is added
1 parent f41d507 commit 736c7fa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/comment-labeled.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ 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 notable-changes label has been added by @${{ github.actor }}.
15+
Please include your text below if you'd like to include a more detailed summary in the changelog.
16+
```
17+
[Insert here]
18+
```
1319
1420
permissions:
1521
contents: read
@@ -38,3 +44,14 @@ jobs:
3844
env:
3945
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4046
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE"
47+
48+
notable-change:
49+
permissions:
50+
pull-requests: write
51+
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'notable-change'
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Add notable change description
55+
env:
56+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$NOTABLE_CHANGE_MESSAGE"

0 commit comments

Comments
 (0)