We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 187ad22 commit c9df8e6Copy full SHA for c9df8e6
.github/workflows/pr-checks.yml
@@ -0,0 +1,23 @@
1
+name: PR Checks
2
+
3
+on:
4
+ pull_request:
5
+ branches: [ master ]
6
7
+jobs:
8
+ changelog-check:
9
+ name: Check CHANGELOG.md
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Check out code
13
+ uses: actions/checkout@v2
14
+ with:
15
+ fetch-depth: 2
16
17
+ - name: Check for CHANGELOG.md edits and comment if missing
18
+ run: |
19
+ if ! git diff --name-only HEAD^1 HEAD | grep -q 'CHANGELOG.md'; then
20
+ gh pr comment ${{ github.event.pull_request.number }} --body "⚠️ Warning: Please update CHANGELOG.md with your changes."
21
+ fi
22
+ env:
23
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments