Only run label enforcement workflow on open PRs#76274
Conversation
|
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 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. |
|
Flaky tests detected in b0bb49c. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22793056123
|
|
I just tested this after merging by adding the
|

What?
This adds a conditional check to the "Enforce labels on Pull Request" workflow so it only runs when the PR is in the
openstate.Why?
The workflow's purpose is to block merges until a
[Type] *label has been added. After the PR is merged, there's no point in running it.How?
Using the
github.eventcontext, thepull_requestevent payload is available and contains astateproperty.