From aefe6a87835d461926c1da8d540c823e6827fa42 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:04:02 +0800 Subject: [PATCH] Update pr-template.yml --- .github/workflows/pr-template.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-template.yml b/.github/workflows/pr-template.yml index d67c475249..8f891d97a6 100644 --- a/.github/workflows/pr-template.yml +++ b/.github/workflows/pr-template.yml @@ -16,7 +16,6 @@ jobs: validate: name: Validate runs-on: ubuntu-latest - steps: - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: @@ -27,7 +26,7 @@ jobs: continue-on-error: true env: PR_BODY: ${{ github.event.pull_request.body }} - run: node scripts/validate-pr-template.js + run: node util/check-pr-template.js - name: Handle incomplete PR if: steps.validate.outcome == 'failure' @@ -133,3 +132,9 @@ jobs: throw error; } } + + - name: Fail if PR template is incomplete + if: steps.validate.outcome == 'failure' + run: | + echo "::error::PR template is incomplete." + exit 1