Skip to content

Commit d8800e8

Browse files
author
Michael Sauter
authored
Merge pull request #53 from opendevstack/feature/add-changelog-enforcer
added changelog enforcer as github action
2 parents b109f5c + db3acb4 commit d8800e8

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Changelog Enforcer
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
5+
6+
jobs:
7+
# Enforces the update of a changelog file on every pull request
8+
changelog:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: dangoslen/changelog-enforcer@v2
13+
with:
14+
changeLogPath: 'CHANGELOG.md'
15+
skipLabels: 'skip changelog'
16+
missingUpdateErrorMessage: >
17+
No update to CHANGELOG.md found! Please add a changelog entry to it
18+
describing your change with a link to the issue or pull request.
19+
Please note that the keepachangelog (https://keepachangelog.com)
20+
format is used. If your change is not applicable for a changelog
21+
entry, add a 'skip changelog' label to the pull request to skip
22+
the changelog enforcer.

0 commit comments

Comments
 (0)