Skip to content

Commit ef062d4

Browse files
committed
ci: Add a changelog check
1 parent 027e24b commit ef062d4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Changelog check
2+
3+
on:
4+
pull_request:
5+
# Run on labeled/unlabeled in addition to defaults to detect
6+
# adding/removing skip-changelog labels.
7+
types: [opened, reopened, labeled, unlabeled, synchronize]
8+
9+
jobs:
10+
changelog:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
17+
- uses: dangoslen/changelog-enforcer@v3
18+
with:
19+
changeLogPath: CHANGELOG.md
20+
skipLabels: "skip-changelog"
21+
missingUpdateErrorMessage: "Please add a changelog entry in the CHANGELOG.md file."

0 commit comments

Comments
 (0)