Debian Codegraph @

.github/workflows/changelog_reminder.yaml

raw
1 name: Verify changelog updated
2
3 on:
4 pull_request_target:
5 types:
6 - opened
7 - ready_for_review
8
9 jobs:
10 check_changes:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v5
14
15 - name: Get all updated Python files
16 id: changed-python-files
17 uses: tj-actions/changed-files@v46
18 with:
19 files: |
20 **.py
21
22 - name: Check for the changelog update
23 id: changelog-update
24 uses: tj-actions/changed-files@v46
25 with:
26 files: docs/changelog.rst
27
28 - name: Comment under the PR with a reminder
29 if: steps.changed-python-files.outputs.any_changed == 'true' && steps.changelog-update.outputs.any_changed == 'false'
30 uses: thollander/actions-comment-pull-request@v2
31 with:
32 message: 'Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.'
33 GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'