Debian Codegraph @

.github/workflows/changelog-check.yml

raw
1 name: Require change fragment
2
3 on:
4 pull_request:
5 types:
6 # On by default if you specify no types.
7 - "opened"
8 - "reopened"
9 - "synchronize"
10 # For `skip-label` only.
11 - "labeled"
12 - "unlabeled"
13
14 jobs:
15 check-changelog:
16 runs-on: ubuntu-latest
17 steps:
18 - name: "Check for changelog entry"
19 uses: brettcannon/[email protected]
20 with:
21 file-pattern: |
22 .changes/unreleased/*.yaml
23 CHANGELOG.md
24 skip-label: "skip changelog"
25 failure-message: "Missing a changelog file in ${file-pattern}; please add one or apply the ${skip-label} label to the pull request"