Skip to content

👷 Skip CI on draft pull requests - #1

Merged
usagizmo merged 1 commit into
mainfrom
claude/github-actions-draft-skip-101049
Oct 20, 2026
Merged

usagizmo merged 1 commit into
mainfrom
claude/github-actions-draft-skip-101049

Conversation

@usagizmo

@usagizmo usagizmo commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Changes

.github/workflows/main.yml

  • Set on.pull_request.types to opened / synchronize / reopened / ready_for_review (branches: [main] kept)
  • Add if: github.event_name != 'pull_request' || !github.event.pull_request.draft to job check

Behavior

Event Behavior
Draft PR opened / synchronize / reopened Run is created, check is skipped
Draft → Ready (ready_for_review) check runs
Push to a Ready PR (synchronize) check runs
Push to main / workflow_dispatch check runs as before

The pr skill's ready-and-watch.sh waits for a pull_request run created after Ready. With the default types (opened / synchronize / reopened), marking a PR Ready does not start CI, so ready_for_review is added.

README does not describe CI triggers, so no doc changes. Propagating this to derived repositories is out of scope.

Verification on this PR

Checked at head ec8b2d3.

  • Created as Draft (opened): run 39478554730 concluded skipped
  • Marked Ready (ready_for_review at 2026-10-20T18:52:47Z): run 39478594467 (createdAt 18:52:48Z) started and concluded success
  • Push to main / workflow_dispatch: the first term of if is always true. Not verified with a real run, since this PR is not merged yet

- Run the pull_request workflow on ready_for_review in addition to the default types
- Skip the check job while the pull request is a draft; push and workflow_dispatch run as before
@vercel

vercel Bot commented Oct 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
dev-template-pages Ready Ready Preview Oct 20, 2026 6:52pm UTC

Request Review

@usagizmo
usagizmo marked this pull request as ready for review October 20, 2026 18:52
@usagizmo
usagizmo merged commit fd2f61d into main Oct 20, 2026
4 checks passed
@usagizmo
usagizmo deleted the claude/github-actions-draft-skip-101049 branch October 20, 2026 19:18

This branch was successfully deployed

1 active deployment
Preview — ec8b2d37 Deployed Oct 20, 2026 by vercel[bot]
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.

1 participant