Debian Codegraph @

.github/workflows/bot-changelog-trigger.yml

raw
1 name: Changelog Bot Trigger
2
3 on:
4 pull_request_review:
5 types: [submitted]
6
7 permissions: {}
8
9 jobs:
10 check:
11 if: |
12 github.event.review.state == 'approved' &&
13 (github.event.review.author_association == 'OWNER' ||
14 github.event.review.author_association == 'MEMBER' ||
15 github.event.review.author_association == 'COLLABORATOR')
16 runs-on: ubuntu-latest
17 steps:
18 - name: Check for noteworthy PR
19 id: check
20 env:
21 PR_TITLE: ${{ github.event.pull_request.title }}
22 run: |
23 if echo "$PR_TITLE" | grep -qiE '^\[(feature|fix|change!?)\]'; then
24 echo "has_noteworthy=true" >> $GITHUB_OUTPUT
25 fi
26
27 - name: Save PR metadata
28 if: steps.check.outputs.has_noteworthy == 'true'
29 env:
30 PR_NUMBER: ${{ github.event.pull_request.number }}
31 run: echo "$PR_NUMBER" > pr_number
32
33 - name: Upload PR metadata
34 if: steps.check.outputs.has_noteworthy == 'true'
35 uses: actions/upload-artifact@v7
36 with:
37 name: changelog-metadata
38 path: pr_number