diff --git a/.github/workflows/staging-ci.yml b/.github/workflows/staging-ci.yml index d50db2b1..6164424a 100644 --- a/.github/workflows/staging-ci.yml +++ b/.github/workflows/staging-ci.yml @@ -298,6 +298,15 @@ jobs: exit 0 fi + # Check for "No issues found" first (clean pass) + NO_ISSUES=$(gh api "repos/${REPO}/issues/${PR_NUMBER}/comments" \ + --jq '[.[] | select(.user.login == "claude[bot]") | select(.body | test("No issues found"))] | length' 2>/dev/null || echo "0") + if [ "$NO_ISSUES" -gt 0 ]; then + echo "Claude review found no issues — gate passes" + echo "has_blocking=false" >> "$GITHUB_OUTPUT" + exit 0 + fi + # Get the last Claude comment that contains findings JQ_FILTER='[.[] | select(.user.login == "claude[bot]") | select(.body | test("Found [0-9]+ issue"))] | last' BODY=$(gh api "repos/${REPO}/issues/${PR_NUMBER}/comments" \ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a37aaf70..e8894c1b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,9 +117,7 @@ jobs: version-check: name: Version Bump Check runs-on: ubuntu-latest - if: > - github.event_name == 'pull_request' && - contains(github.event.pull_request.labels.*.name, 'staging-promotion') + if: github.event_name == 'pull_request' steps: - name: Checkout repository uses: actions/checkout@v6