Skip to content

Commit bc3692a

Browse files
committed
chore: automate description requests when notable change label is added
1 parent f41d507 commit bc3692a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/comment-labeled.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ 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: The notable-changes label has been added by @${{ github.actor }}.
14+
Please include your text below if you'd like to include a more detailed summary in the changelog.
15+
```
16+
[Insert here]
17+
```
1318

1419
permissions:
1520
contents: read
@@ -38,3 +43,14 @@ jobs:
3843
env:
3944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4045
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$FAST_TRACK_MESSAGE"
46+
47+
notable-change:
48+
permissions:
49+
pull-requests: write
50+
if: github.repository == 'nodejs/node' && github.event_name == 'pull_request_target' && github.event.label.name == 'notable-change'
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Add notable change description
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: gh pr comment ${{ github.event.pull_request.number }} --repo ${{ github.repository }} --body "$NOTABLE_CHANGE_MESSAGE"

0 commit comments

Comments
 (0)