From a910ccc273ff8801b26c594d0a6c99d5f4414d05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Thu, 27 Mar 2025 14:10:37 +0100 Subject: [PATCH] Provide a way to opt-out from CHANGELOG check Co-authored-by: Alex Pyrgiotis --- .github/workflows/check_pr.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index d3c7dd1..35df6dd 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -1,6 +1,7 @@ name: Check branch conformity on: pull_request: + types: ["opened", "labeled", "unlabeled", "reopened", "synchronize"] jobs: prevent-fixup-commits: @@ -20,17 +21,10 @@ jobs: check-changelog: runs-on: ubuntu-latest + name: Ensure CHANGELOG.md is populated for user-visible changes steps: - - name: Checkout code - uses: actions/checkout@v4 + # Pin the GitHub action to a specific commit that we have audited and know + # how it works. + - uses: tarides/changelog-check-action@509965da3b8ac786a5e2da30c2ccf9661189121f with: - fetch-depth: 0 - - name: ensure CHANGELOG.md is populated - env: - BASE_REF: ${{ github.event.pull_request.base.ref }} - shell: bash - run: | - if git diff --exit-code "origin/${BASE_REF}" -- CHANGELOG.md; then - echo "::error::No CHANGELOG.md modifications were found in this pull request." - return -1; - fi + changelog: CHANGELOG.md