Skip to content

Commit 14b27b7

Browse files
bors[bot]korken89
andauthored
Merge #5
5: Added changelog enforcer r=perlindgren a=korken89 Co-authored-by: Emil Fresk <[email protected]>
2 parents f2c72f7 + e3b1273 commit 14b27b7

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Check that the changelog is updated for all changes.
2+
#
3+
# This is only run for PRs.
4+
5+
on:
6+
pull_request:
7+
# opened, reopened, synchronize are the default types for pull_request.
8+
# labeled, unlabeled ensure this check is also run if a label is added or removed.
9+
types: [opened, reopened, labeled, unlabeled, synchronize]
10+
11+
name: Changelog
12+
13+
jobs:
14+
changelog:
15+
name: Changelog
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout sources
19+
uses: actions/checkout@v2
20+
21+
- name: Check that changelog updated
22+
uses: dangoslen/changelog-enforcer@v3
23+
with:
24+
changeLogPath: CHANGELOG.md
25+
skipLabels: 'needs-changelog, skip-changelog'
26+
missingUpdateErrorMessage: 'Please add a changelog entry in the CHANGELOG.md file.'
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- CI changelog entry enforcer
13+
1014
## [v1.0.0] - 2021-12-25
1115

1216
- Edition 2021

0 commit comments

Comments
 (0)