From 2a26b15b53aa7e727a6028b48c8b92cd88f32fa9 Mon Sep 17 00:00:00 2001 From: "fts-forge[bot]" <345159799+fts-forge[bot]@users.noreply.github.com> Date: Tue, 17 Nov 2026 18:28:25 -0800 Subject: [PATCH] ci: skip CI on draft PRs; marking a PR ready starts it Every job that runs on a pull request is skipped while the PR is a draft (job-level if:, so a skipped job still reports). The pull_request trigger lists ready_for_review, so marking a PR ready starts the run; every push after that runs it again and cancels the older run. Pushes, dispatches and tags are unchanged. The agent doc says to mark a PR ready to get checks. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 3 +++ AGENTS.md | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 223062a5..62a354b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ name: CI on: pull_request: + # A draft runs nothing; marking it ready starts the run. + types: [opened, synchronize, reopened, ready_for_review] push: branches: [main] @@ -27,6 +29,7 @@ env: jobs: check: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.draft == false }} runs-on: ubuntu-latest timeout-minutes: 60 defaults: diff --git a/AGENTS.md b/AGENTS.md index 18d95c8f..99aabfae 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -47,4 +47,5 @@ cargo clippy --workspace --all-features --all-targets ## Process Branch from `origin/main`, open a PR into `main` with a conventional -title. GPL-3.0-or-later; a new crate inherits `license.workspace = true`. +title. CI runs on ready PRs only (skipped on a draft): to get checks, mark +the PR ready (`gh pr ready`); it runs then and on every push after. GPL-3.0-or-later; a new crate inherits `license.workspace = true`.