Skip to content

Commit 14c211d

Browse files
bors[bot]korken89
andauthored
Merge #69
69: Added CI changelog enforcer r=perlindgren a=korken89 Co-authored-by: Emil Fresk <[email protected]>
2 parents 45fbcfd + 5661d0f commit 14c211d

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
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
## [Unreleased]
77

8+
### Added
9+
10+
- CI changelog entry enforcer
11+
812
## [v1.0.0] - 2021-12-25
913

1014
### Added

0 commit comments

Comments
 (0)