From 9a8423e96ed45efe69f876b46644a5e4f744687a Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Thu, 16 Jul 2026 23:36:38 -0300 Subject: [PATCH] fix(ci): run PR workflows when a draft is marked ready for review Both code-pull-request.yml and dco.yml gate their jobs on github.event.pull_request.draft == false, but the pull_request trigger omitted the ready_for_review event type. A PR opened as draft therefore got a run with every job skipped (and the Validate Code fan-in gate reported failure), and marking the PR ready never triggered a fresh run, leaving the PR stuck with a spurious failed check until an unrelated push. Adding ready_for_review to the trigger types makes both workflows re-run when a draft is promoted. Signed-off-by: Rhuan Barreto --- .github/workflows/code-pull-request.yml | 2 +- .github/workflows/dco.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-pull-request.yml b/.github/workflows/code-pull-request.yml index 750656e3..524e573b 100644 --- a/.github/workflows/code-pull-request.yml +++ b/.github/workflows/code-pull-request.yml @@ -5,7 +5,7 @@ on: branches: - main pull_request: - types: [opened, edited, synchronize, reopened] + types: [opened, edited, synchronize, reopened, ready_for_review] branches: - main workflow_dispatch: diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml index 9c3c8f8b..9d44c5d6 100644 --- a/.github/workflows/dco.yml +++ b/.github/workflows/dco.yml @@ -2,7 +2,7 @@ name: DCO on: pull_request: - types: [opened, edited, synchronize, reopened] + types: [opened, edited, synchronize, reopened, ready_for_review] branches: - main