Skip to content

ci: skip workflows on draft PRs and rerun on ready_for_review#10506

Closed
aidangarske wants to merge 2 commits into
wolfSSL:masterfrom
aidangarske:ci-skip-draft-prs
Closed

ci: skip workflows on draft PRs and rerun on ready_for_review#10506
aidangarske wants to merge 2 commits into
wolfSSL:masterfrom
aidangarske:ci-skip-draft-prs

Conversation

@aidangarske
Copy link
Copy Markdown
Member

@aidangarske aidangarske commented May 20, 2026

Description

  • Dont run CI jobs when on draft PR
  • automatically runs after changed to ready for review
image

Add a per-job draft-PR guard and the `ready_for_review` trigger type to
every workflow with a `pull_request:` trigger so CI does not run while
a PR is a draft and fires automatically when the PR is marked ready.
Push and repository_dispatch behavior is unchanged.

Most jobs in the wolfssl workflows already had:

    if: github.repository_owner == 'wolfssl'

The new guard composes with that condition rather than replacing it, so
fork-skip semantics on non-wolfssl pushes are preserved:

    if: >-
      github.repository_owner == 'wolfssl' &&
      (github.event_name != 'pull_request' ||
       github.event.pull_request.draft == false)

The wider `github.event_name != 'pull_request' || ...` form is used
(rather than a bare `draft == false` check) so the rationale is explicit
and not dependent on GitHub Actions' loose-equality coercion behavior
on push/repository_dispatch events.

Adds a workflow-level concurrency block to the five workflows that
didn't already have one (ada, cmake, cmake-autoconf, threadx,
win-csharp-test) so superseded in-flight runs are cancelled by newer
commits on the same PR/branch.

Workflows NOT touched: coverity-scan-fixes, membrowse-comment,
membrowse-onboard, tls-anvil. None of these have a pull_request
trigger.
Copilot AI review requested due to automatic review settings May 20, 2026 18:07
@aidangarske aidangarske marked this pull request as draft May 20, 2026 18:07
@aidangarske aidangarske reopened this May 20, 2026
The initial patch missed docker-OpenWrt.yml because its jobs are
indented with 4 spaces instead of the 2-space convention used by every
other workflow. Compose the draft guard with the existing owner gate
on both jobs at the file's actual indent.
@aidangarske aidangarske marked this pull request as ready for review May 20, 2026 18:14
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@github-actions
Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@aidangarske
Copy link
Copy Markdown
Member Author

close in favor of #10507

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