From 584d5474be9904a60b7570b6a647ed1a98d5bed2 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Tue, 21 Jun 2022 12:48:34 -0400 Subject: [PATCH] copy changelog workflow from `asdf` (#59) --- .github/workflows/changelog.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/changelog.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml new file mode 100644 index 00000000..ebedec18 --- /dev/null +++ b/.github/workflows/changelog.yml @@ -0,0 +1,16 @@ +name: Ensure changelog + +on: + pull_request: + types: [labeled, unlabeled, opened, synchronize, reopened] + +jobs: + ensure_changelog: + name: Verify that a changelog entry exists for this pull request + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - run: grep -P '\[[^\]]*#${{github.event.number}}[,\]]' CHANGES.rst + if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog-entry-needed') }}