Repository navigation
Conversation
This modifies the conditions for GitHub Actions workflow runs so that they do not run within private forks and mirrors for `pull_request` events when the PR is in `draft` status. For situations where this may be desirable, a `Draft Workflow Runs` label can be added to a `draft` pull request to force workflows to run. Props desrosj, jorbin. See #65848. git-svn-id: https://develop.svn.wordpress.org/trunk@63183 602fd350-edb4-49c9-b593-d223f7449a82
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
…orkflows. Applies the same `pull_request` condition from r63183 to the jobs in `upgrade-testing.yml` and `local-docker-environment.yml`, which are still gated on `pull_request` on this branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pull_request triggered runs in private repos.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
There was a problem hiding this comment.
Compared with r63183 and the 6.8 branch workflows: every pull_request job on this branch now has the same private-repo, draft, and Draft Workflow Runs label condition as trunk (22 jobs across 11 files), and nothing else changes. Workflows trunk touched that this branch lacks are correctly left out. The existing dependabot check is kept, and upgrade-testing.yml and local-docker-environment.yml get the same condition since they run on pull_request here. It merges cleanly into the current 6.8 tip (2717ac1). CI: 214 passed, 1 failed. The failure is Local Docker Environment, PHP 8.4 / MySQL 5.7 (https://github.com/WordPress/wordpress-develop/actions/runs/42127965400/job/127597137170): npm ci died with EEXIST on a file in the npm cache (_cacache/tmp), before any test ran. The same job passes on the 6.8 branch (run 40721457115). I re-ran the failed job and it passed.
AI review · claude-opus-5-5
Backports r63183 to the 6.8 branch.
In private forks and mirrors,
pull_requestworkflows no longer run for draft PRs unless theDraft Workflow Runslabel is added. The condition is applied to each job on this branch that runs forpull_requestevents outside ofWordPress/wordpress-develop. Workflows from the trunk commit that don't exist on this branch are skipped.Differences from trunk:
uses:references inupgrade-develop-testing.ymlandworkflow-lint.ymlstill point to@trunk. This branch has no local reusable workflows.github.actor != 'dependabot[bot]'checks are kept.upgrade-testing.ymlandlocal-docker-environment.yml(not gated this way on trunk) get the same condition.Trac ticket: https://core.trac.wordpress.org/ticket/65845
Use of AI Tools
This pull request was created by an AI agent (Claude Code). Until this PR is marked "Ready for Review", treat it as untrusted, AI-created code that requires a manual review by a human team member.
🤖 Generated with Claude Code