From cacb58d8bf17c64f4aa8091bd1ae8b0d03786f30 Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Tue, 19 Nov 2024 14:46:27 +0000 Subject: [PATCH] Changelog action --- .github/workflows/pr_description.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/pr_description.yml diff --git a/.github/workflows/pr_description.yml b/.github/workflows/pr_description.yml new file mode 100644 index 000000000000..2014ea31cd96 --- /dev/null +++ b/.github/workflows/pr_description.yml @@ -0,0 +1,18 @@ +name: Check Pull Request Description + +on: + pull_request: + types: [opened, edited] + +jobs: + changelog: + runs-on: ubuntu-latest + + steps: + - run: | + body=$(jq -r <<< '${{ toJson(github.event.pull_request.body) }}') + if [[ -z $(grep -oP 'changelog: *\K\S+' <<< "$body") ]]; then + echo "::error::Pull Request body is missing `changelog: ...`" + exit 1 + fi +