Skip to content

Repair wp/6.6 branch Actions: Only run PR label enforcement on open pull requests - #82914

Open
desrosj wants to merge 1 commit into
fix-actions-6.6/remove-rn-workflowsfrom
fix-actions-6.6/simplify-pr-label-enforcement
Open

desrosj wants to merge 1 commit into
fix-actions-6.6/remove-rn-workflowsfrom
fix-actions-6.6/simplify-pr-label-enforcement

Conversation

@desrosj

@desrosj desrosj commented Sep 15, 2026

Copy link
Copy Markdown
Member

Part of #82784.

What?

enforce-pr-labels.yml's type-related-labels job now skips execution once a pull request is no longer open, by adding if: ${{ github.event.pull_request.state == 'open' }} to the job.

Why?

The job previously ran on any PR matching its trigger types (labeled, unlabeled, ready_for_review, review_requested) regardless of whether the PR was still open, including closed or merged PRs where the check no longer serves any purpose.

How?

Ported the applicable piece of trunk's d410e57a781b4bac0acb481f3916d2cf80b54a02 ("Only run label enforcement workflow on open PRs.", #76274). Trunk's two other related commits (switching to pull_request_target and updating the types: list) were checked and found already present verbatim in this branch's copy of the file, so only the if: condition itself was genuinely missing here.

The existing job-level permissions: pull-requests: write block was left completely untouched — this change is a single added line.

Use of AI Tools

This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.

@desrosj desrosj added the [Type] Build Tooling Issues or PRs related to build tooling label Sep 15, 2026
@desrosj desrosj self-assigned this Sep 15, 2026
@coderabbitai

coderabbitai Bot commented Sep 15, 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: cae8df17-58ba-475c-80fc-dfaa0c920750

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.

@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.

1 participant