Skip to content

Commit

Permalink
Changelog action
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexendoo committed Nov 19, 2024
1 parent 53994bd commit 3eda00d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr_description.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3eda00d

Please sign in to comment.