Add github action that validates all changes have a formal description (#7340)

This commit is contained in:
Theodore Aptekarev
2026-01-31 01:20:15 +03:00
committed by GitHub
parent 2cebe5a88e
commit 4ab9e27a56

23
.github/workflows/pr_description.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: PR Description Check
on:
pull_request:
types: [opened, edited, reopened, synchronize, ready_for_review]
permissions:
contents: read
pull-requests: read
jobs:
pr-description:
name: Ensure PR description is present
runs-on: ubuntu-latest
steps:
- name: Check PR description
shell: bash
run: |
body="${{ github.event.pull_request.body }}"
if [ -z "$(echo "$body" | tr -d '[:space:]')" ]; then
echo "::error::PR description is empty. Please provide a description of the change."
exit 1
fi