From db3acb40b49b7569d284a62bf14989672a745c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Dupont?= Date: Tue, 13 Apr 2021 11:48:18 +0200 Subject: [PATCH] added changelog enforcer as github action --- .github/workflows/changelog-enforcer.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/changelog-enforcer.yml diff --git a/.github/workflows/changelog-enforcer.yml b/.github/workflows/changelog-enforcer.yml new file mode 100644 index 00000000..4ce32064 --- /dev/null +++ b/.github/workflows/changelog-enforcer.yml @@ -0,0 +1,22 @@ +name: Changelog Enforcer +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + # Enforces the update of a changelog file on every pull request + changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: dangoslen/changelog-enforcer@v2 + with: + changeLogPath: 'CHANGELOG.md' + skipLabels: 'skip changelog' + missingUpdateErrorMessage: > + No update to CHANGELOG.md found! Please add a changelog entry to it + describing your change with a link to the issue or pull request. + Please note that the keepachangelog (https://keepachangelog.com) + format is used. If your change is not applicable for a changelog + entry, add a 'skip changelog' label to the pull request to skip + the changelog enforcer. \ No newline at end of file