From 294449065b1f93bbfea7fb684bc8366d5b73d463 Mon Sep 17 00:00:00 2001 From: Henry Park Date: Mon, 9 Mar 2026 16:00:17 -0700 Subject: [PATCH] fix(ci): fetch tags for staging-tested + fix issue counter [skip-regression-check] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Add fetch-tags: true to checkout — staging-tested is a tag and without it every run behaves like a first run (no incremental batching). 2. Only increment ISSUES_CREATED when gh issue create succeeds. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/staging-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging-ci.yml b/.github/workflows/staging-ci.yml index 2348d6dc..9e887436 100644 --- a/.github/workflows/staging-ci.yml +++ b/.github/workflows/staging-ci.yml @@ -38,6 +38,7 @@ jobs: with: ref: staging fetch-depth: 0 + fetch-tags: true - name: Check for changes since last tested id: check @@ -368,11 +369,14 @@ jobs: echo "*Auto-created by staging-ci Claude Code review*" } > /tmp/issue-body.md - gh issue create \ + if gh issue create \ --title "[${SEVERITY}] ${TITLE}" \ --body-file /tmp/issue-body.md \ - --label "${LABELS}" || echo "::warning::Failed to create issue for ${SEVERITY} finding" - ISSUES_CREATED=$((ISSUES_CREATED + 1)) + --label "${LABELS}"; then + ISSUES_CREATED=$((ISSUES_CREATED + 1)) + else + echo "::warning::Failed to create issue for ${SEVERITY} finding" + fi fi done < <(echo "$BODY" | grep -oE '\[(CRITICAL|HIGH|MEDIUM|LOW):[0-9]+\].*')