From 5ed99fa01437e31e0b9f28a3bbd2fff4f05191b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Fri, 17 Apr 2026 20:08:02 -0300 Subject: [PATCH] ci: skip AI review on draft PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Gate the ai-review jobs on `draft == false` so Kimi/Codex/Claude only run once a PR is actually open for review. PRs opened directly as non-draft still fire the `opened` event; draft → ready transitions fire `ready_for_review`. Issue-comment triggers (`/kimi`, `/codex`, `/claude`) are unaffected. --- .github/workflows/ai-review.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ai-review.yml b/.github/workflows/ai-review.yml index d8b302b8..0c4d5f4e 100644 --- a/.github/workflows/ai-review.yml +++ b/.github/workflows/ai-review.yml @@ -21,16 +21,19 @@ on: jobs: kimi-review: + if: github.event_name == 'issue_comment' || github.event.pull_request.draft == false uses: lambdaclass/actions/.github/workflows/ai-review-kimi.yml@v1 secrets: KIMI_API_KEY: ${{ secrets.KIMI_API_KEY }} codex-review: + if: github.event_name == 'issue_comment' || github.event.pull_request.draft == false uses: lambdaclass/actions/.github/workflows/ai-review-codex.yml@v1 secrets: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} claude-review: + if: github.event_name == 'issue_comment' || github.event.pull_request.draft == false uses: lambdaclass/actions/.github/workflows/ai-review-claude.yml@v1 secrets: ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}