-
Notifications
You must be signed in to change notification settings - Fork 19
37 lines (33 loc) · 1.01 KB
/
changelog-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Require changelog
on:
pull_request:
types:
# On by default if types not specified:
- "opened"
- "reopened"
- "synchronize"
# For `skip-label` handling:
- "labeled"
- "unlabeled"
permissions:
pull-requests: write
jobs:
check-changelog:
name: Check for changelog
runs-on: ubuntu-latest
if: ${{ github.actor != 'renovate[bot]' }}
steps:
- name: Check
uses: brettcannon/[email protected]
# Run only if PR body doesn't contain '[skip changelog]'.
if: ${{ !contains(github.event.pull_request.body, '[skip changelog]') }}
with:
file-pattern: |
.changes/unreleased/*.yaml
CHANGELOG.md
skip-label: "skip changelog"
token: ${{ secrets.GITHUB_TOKEN }}
failure-message: >-
Missing a changelog file in ${file-pattern};
please add one or apply the ${skip-label} label to the pull request
if a changelog entry is not needed.