From f211e76721eb125b52424a0347dffe13aea2149a Mon Sep 17 00:00:00 2001 From: Thomas Bruyelle Date: Tue, 23 Aug 2022 10:33:25 +0200 Subject: [PATCH] chore: add CL enforcer gh action (#2768) This forces the developper to add an entry in the changelog.md file of his PR. It is possible to skip that rule by adding a `Skip-Changelog` label. --- .github/workflows/cl-enforcer.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/cl-enforcer.yml diff --git a/.github/workflows/cl-enforcer.yml b/.github/workflows/cl-enforcer.yml new file mode 100644 index 0000000000..850a632159 --- /dev/null +++ b/.github/workflows/cl-enforcer.yml @@ -0,0 +1,18 @@ +name: Changelog Enforcer +on: + pull_request: + # The specific activity types are listed here to include "labeled" and "unlabeled" + # (which are not included by default for the "pull_request" trigger). + # This is needed to allow skipping enforcement of the changelog in PRs with specific labels, + # as defined in the (optional) "skipLabels" property. + types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] + +jobs: + changelog: + runs-on: ubuntu-latest + steps: + - uses: dangoslen/changelog-enforcer@v3 + with: + changeLogPath: 'changelog.md' + missingUpdateErrorMessage: 'Please fill the changelog.md file or add the "Skip-Changelog" label' + versionPattern: ''