Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
|
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 Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @Copilot. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
There was a problem hiding this comment.
🟢 Approval recommended
The focused change matches the upstream fix and correctly uses the pull request payload state.
Pull request overview
Restricts PR label enforcement to open pull requests, avoiding unnecessary runs on closed PRs.
Changes:
- Adds an open-state condition to the label enforcement job.
File summaries
| File | Description |
|---|---|
.github/workflows/enforce-pr-labels.yml |
Skips label enforcement when the pull request is closed. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
e72f615 to
7ff8872
Compare
|
Size Change: 0 B Total Size: 2.12 MB ℹ️ View Unchanged
|
…ch filter, so PRs opened against this branch still get fixed-issue assignment and first-time-contributor labeling.
7ff8872 to
9fe412a
Compare
…nit-js-date jobs.
…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.
08c7a08 to
f1a9529
Compare
|
Closing: |
Part of #82785.
What?
This cherry-picks the applicable change from d410e57 ("Only run label enforcement workflow on open PRs.", WordPress/gutenberg#76274) into this branch's own copy of
enforce-pr-labels.yml, addingif: ${{ github.event.pull_request.state == 'open' }}to thetype-related-labelsjob so the workflow no longer runs against closed PRs.This branch's
enforce-pr-labels.ymlalready has thepull_request_targettrigger andtypes:list that two of the three related trunk commits in this area introduced, so only this one line was actually missing here.Why?
Only running against open PRs avoids wasted/meaningless runs on PRs that are already closed.
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.