Skip to content

chore(ci): skip actions for draft PRs#680

Merged
wgtmac merged 2 commits into
apache:mainfrom
zhjwpku:skip-draft-pr-actions
May 25, 2026
Merged

chore(ci): skip actions for draft PRs#680
wgtmac merged 2 commits into
apache:mainfrom
zhjwpku:skip-draft-pr-actions

Conversation

@zhjwpku
Copy link
Copy Markdown
Collaborator

@zhjwpku zhjwpku commented May 25, 2026

No description provided.

@zhjwpku zhjwpku marked this pull request as ready for review May 25, 2026 02:25
Copy link
Copy Markdown
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It works.

@zhjwpku zhjwpku marked this pull request as draft May 25, 2026 02:32
@zhjwpku zhjwpku marked this pull request as ready for review May 25, 2026 02:36
@wgtmac wgtmac requested a review from Copilot May 25, 2026 03:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates GitHub Actions workflows to avoid running CI/security checks for draft pull requests, while still running normally on pushes and when a PR is marked “Ready for review”.

Changes:

  • Restrict pull_request triggers to key activity types and include ready_for_review.
  • Add job-level if: guards so jobs are skipped when the PR is a draft.
  • Normalize the license check workflow’s on: syntax to support the new trigger configuration.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.github/workflows/zizmor.yml Skip zizmor job for draft PRs; run when PR becomes ready.
.github/workflows/test.yml Skip all CI matrix jobs for draft PRs; run on ready-for-review.
.github/workflows/sanitizer_test.yml Skip sanitizer job for draft PRs; run when ready.
.github/workflows/s3_test.yml Skip S3/MinIO integration job for draft PRs; run when ready.
.github/workflows/pre-commit.yml Skip pre-commit job for draft PRs on PR events (push unchanged).
.github/workflows/license_check.yml Convert on: pull_request to expanded form and skip drafts.
.github/workflows/cpp-linter.yml Skip linter job for draft PRs; run when ready-for-review.
.github/workflows/codeql.yml Skip CodeQL job for draft PRs; keep push/schedule behavior.
.github/workflows/asf-allowlist-check.yml Skip allowlist check for draft PRs; run when ready.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@wgtmac wgtmac changed the title chore: skip actions for draft PRs chore(ci): skip actions for draft PRs May 25, 2026
@wgtmac wgtmac merged commit a8578e1 into apache:main May 25, 2026
26 checks passed
@wgtmac
Copy link
Copy Markdown
Member

wgtmac commented May 25, 2026

Thanks @zhjwpku for improving this!

@zhjwpku zhjwpku deleted the skip-draft-pr-actions branch May 25, 2026 06:50
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.

3 participants