Skip to content

Repair wp/7.0 branch Actions: widen push/pull_request branch filters - #82806

Open
desrosj wants to merge 2 commits into
fix-actions-7.0/pin-runner-imagesfrom
fix-actions-7.0/fix-workflow-branch-filters
Open

desrosj wants to merge 2 commits into
fix-actions-7.0/pin-runner-imagesfrom
fix-actions-7.0/fix-workflow-branch-filters

Conversation

@desrosj

@desrosj desrosj commented Sep 11, 2026

Copy link
Copy Markdown
Member

Part of #82782.

What?

Widens push: branch filters across this branch's GitHub Actions workflows so they trigger correctly on a direct push to this branch, and removes workflow-lint.yml's pull_request branch filter entirely.

Why?

Ports upstream trunk's open PR #82744 (head commit 3fe3bd4aceb8331161e99d9bfc6a7463c048fcac as of this writing — the PR is still open/unmerged), "Workflows: Refine and complete the push and pull_request branch filters". Per the current version of that upstream PR, pull_request: triggers are deliberately left unfiltered everywhere (so a PR gets the same checks regardless of target branch) except workflow-lint.yml, where a previous trunk-only filter is removed entirely.

Workflow Change Why
pull-request-automation.yml Removed the push trigger Its push-triggered tasks check payload.ref !== 'refs/heads/trunk' and return immediately on this branch, so nothing happens on push here. pull_request_target is untouched and still does real work (fixed-issue assignment, first-time-contributor labeling) on PRs targeting this branch.

Use of AI Tools

This PR was authored with the help of Claude Code.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 9b29aa7b-ff45-4ac2-9432-daa6df43acf7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Updates GitHub Actions branch filters so workflows trigger correctly for supported wp/* and release/* branches, including wp/7.0.

Changes:

  • Replaces broad branch globs with explicit branch patterns.
  • Adds wp/latest and wp/next push triggers.
  • Removes the workflow-lint pull request branch restriction.
File summaries
File Description
.github/workflows/workflow-lint.yml Removes the pull request branch filter.
.github/workflows/unit-test.yml Updates push branch filters.
.github/workflows/static-checks.yml Updates push branch filters.
.github/workflows/end2end-test.yml Updates push branch filters.
.github/workflows/create-block.yml Expands supported push branches.
.github/workflows/build-plugin-zip.yml Updates push branch filters.
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 0
  • Review effort level: Lite (auto)

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@desrosj
desrosj force-pushed the fix-actions-7.0/fix-workflow-branch-filters branch from 006ac0e to 9f86cf8 Compare September 14, 2026 01:50
@desrosj
desrosj force-pushed the fix-actions-7.0/fix-workflow-branch-filters branch from 1e3f1c3 to fae6ee0 Compare September 14, 2026 02:35
@desrosj
desrosj force-pushed the fix-actions-7.0/fix-workflow-branch-filters branch from fae6ee0 to 55fb597 Compare September 14, 2026 16:43
…h-triggered tasks (`add-milestone`, `first-time-contributor-account-link`) both bail out immediately outside of `trunk`, so running them here on every push does nothing.
@desrosj
desrosj force-pushed the fix-actions-7.0/fix-workflow-branch-filters branch from 55fb597 to b24c2be Compare September 14, 2026 17:01
@desrosj
desrosj marked this pull request as ready for review September 14, 2026 17:08
@github-actions

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: desrosj <desrosj@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants