From 4135ce68c25c2283b5aa72a5b1d5834f20d8dd17 Mon Sep 17 00:00:00 2001 From: Shangjie Chen Date: Sun, 10 May 2026 18:42:36 -0700 Subject: [PATCH] ci: exclude draft PRs from auto-review and trigger on ready_for_review --- .github/workflows/gemini-dispatch.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gemini-dispatch.yml b/.github/workflows/gemini-dispatch.yml index bfad13b5..91b877b1 100644 --- a/.github/workflows/gemini-dispatch.yml +++ b/.github/workflows/gemini-dispatch.yml @@ -10,6 +10,7 @@ on: pull_request: types: - 'opened' + - 'ready_for_review' issues: types: - 'opened' @@ -49,7 +50,8 @@ jobs: if: |- ( github.event_name == 'pull_request' && - github.event.pull_request.head.repo.fork == false + github.event.pull_request.head.repo.fork == false && + github.event.pull_request.draft == false ) || ( github.event_name == 'issues' && contains(fromJSON('["opened", "reopened"]'), github.event.action)