GeezerVison is showing github.com — meta: automate description requests when notable change label is added · nodejs/node@dc024d9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/comment-labeled.yml +15Lines changed: 15 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
10 | 10 | This issue/PR was marked as stalled, it will be automatically closed in 30 days. |
11 | 11 | If it should remain open, please leave a comment explaining why it should remain open. |
12 | 12 | 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. |
13 | 17 |
|
14 | 18 | permissions: |
15 | 19 | contents: read |
|
38 | 42 | env: |
39 | 43 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
40 | 44 | 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" |