From 4ab9e27a56ce70568ff209a5e200ce0d80d2d7aa Mon Sep 17 00:00:00 2001 From: Theodore Aptekarev Date: Sat, 31 Jan 2026 01:20:15 +0300 Subject: [PATCH] Add github action that validates all changes have a formal description (#7340) --- .github/workflows/pr_description.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 00000000000..56947fe166f --- /dev/null +++ b/.github/workflows/pr_description.yml @@ -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