From 5646f9ad2b69e9d6f2f3b7ad06d47a5f63578b45 Mon Sep 17 00:00:00 2001 From: Sai Cheemalapati Date: Sat, 28 Mar 2026 21:18:31 +0200 Subject: [PATCH] DEV-1168: Fix bot PRs stuck pending by moving skip into step --- .github/workflows/pr-title-check.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index 71d066e..b3fbbd3 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -6,14 +6,16 @@ on: jobs: check-title: - if: ${{ github.event.pull_request.user.type != 'Bot' }} runs-on: ubuntu-latest steps: - name: Check for Linear issue ID env: PR_TITLE: ${{ github.event.pull_request.title }} + PR_AUTHOR_TYPE: ${{ github.event.pull_request.user.type }} run: | - if echo "$PR_TITLE" | grep -qPi '^[A-Z]+[-\s]\d+\b'; then + if [ "$PR_AUTHOR_TYPE" = "Bot" ]; then + echo "Bot PR — skipping check." + elif echo "$PR_TITLE" | grep -qPi '^[A-Z]+[-\s]\d+\b'; then echo "PR title starts with a Linear issue ID." elif echo "$PR_TITLE" | grep -qPi '^NO-ISSUE\b'; then echo "::notice::PR explicitly opted out of issue association."