Skip to content

ci: skip every job on draft pull requests - #140

Merged
leoafarias merged 1 commit into
mainfrom
cursor/skip-draft-pr-ci-3eaf
Nov 6, 2026
Merged

leoafarias merged 1 commit into
mainfrom
cursor/skip-draft-pr-ci-3eaf

Conversation

@leoafarias

@leoafarias leoafarias commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Draft pull requests run zero CI jobs. Marking a pull request ready fires ready_for_review and runs CI. There is no failing draft gate and no required-check placeholder.

Workflows

Enumerated .github/workflows/ (4 files). Every workflow that listens for pull_request now:

  • includes activity types opened, synchronize, reopened, and ready_for_review
  • skips each job when github.event.pull_request.draft == true
  • still runs on push and workflow_call as today (draft is null on those events)
Workflow Jobs Draft behavior
docs.yml validate skipped
test.yml Test, Integration Tests, Web Smoke (Playwright) skipped
firebase-hosting-pull-request.yml build_and_preview skipped; same-repository check kept

Unchanged: firebase-hosting-merge.yml (push only). No workflow uses pull_request_target. Check names are unchanged.

Verification

  • actionlint 1.7.12 on .github/workflows/*.yml (clean)

Do not merge.

Draft pull_request runs no longer execute docs validation, tests, or
Firebase previews. Marking a PR ready fires ready_for_review and runs
CI. Push and workflow_call behavior is unchanged.

Co-authored-by: Leo Farias <leoafarias@users.noreply.github.com>
@leoafarias
leoafarias merged commit 5bbda22 into main Nov 6, 2026
3 of 6 checks passed
@leoafarias
leoafarias deleted the cursor/skip-draft-pr-ci-3eaf branch November 6, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants