From b505ebe394145c81decaa48907529a3e8a968eaf Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 2 Jun 2026 02:42:29 +0000 Subject: [PATCH] ci: reject all-zero placeholder ticket numbers in Linear ticket check --- .github/workflows/require-linear-ticket.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/require-linear-ticket.yml b/.github/workflows/require-linear-ticket.yml index a19eea97cd7..42e0c75af85 100644 --- a/.github/workflows/require-linear-ticket.yml +++ b/.github/workflows/require-linear-ticket.yml @@ -18,9 +18,9 @@ jobs: env: PR_BODY: ${{ github.event.pull_request.body }} run: | - if echo "$PR_BODY" | grep -qiE 'Resolves LIT-[0-9]+'; then + if echo "$PR_BODY" | grep -qiE 'Resolves LIT-0*[1-9][0-9]*'; then echo "Found Linear ticket reference." exit 0 fi - echo "::error::PRs targeting 'litellm_internal_staging' must reference a Linear ticket in the description using the format 'Resolves LIT-XXXX' (e.g. 'Resolves LIT-1234')." + echo "::error::PRs targeting 'litellm_internal_staging' must reference a real Linear ticket in the description using the format 'Resolves LIT-XXXX' (e.g. 'Resolves LIT-1234'). Placeholder values like LIT-0000 are not accepted." exit 1