Skip to content

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

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

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

Conversation

@desrosj

@desrosj desrosj commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

What?

This cherry-picks d410e57a781b4bac0acb481f3916d2cf80b54a02 ("Only run label enforcement workflow on open PRs.", WordPress/gutenberg#76274) into this branch's own copy of enforce-pr-labels.yml so the workflow no longer runs against closed PRs.

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.

@desrosj
desrosj added this pull request to stack #179 September 10, 2026 18:22
@desrosj
desrosj force-pushed the fix-actions-7.0/simplify-pr-label-enforcement branch from 5cb9399 to 360e01f Compare September 10, 2026 18:39
@desrosj desrosj changed the title Repair wp/7.0 branch Actions: Simplify PR label enforcement Repair wp/7.0 branch Actions: Only run PR label enforcement on open pull requests Sep 10, 2026
@desrosj
desrosj marked this pull request as ready for review September 10, 2026 18:52
@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.

@desrosj
desrosj marked this pull request as draft September 10, 2026 20:09
@github-actions

github-actions Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Flaky tests detected in a7dc206.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/desrosj/gutenberg/actions/runs/34549512574
📝 Reported tests:

should paste block styles using keyboard in /test/e2e/specs/editor/various/list-view.spec.js, passed after 2 failed attempts.
Error: expect(received).toMatchObject(expected)

- Expected  - 6
+ Received  + 0

@@ -1,15 +1,9 @@
  Array [
    Object {
      "attributes": Object {
        "content": "First Block",
-       "style": Object {
-         "color": Object {
-           "background": "#00ff00",
-           "text": "#ff0000",
-         },
-       },
      },
      "name": "core/paragraph",
    },
    Object {
      "attributes": Object {

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/list-view.spec.js:653:3
Error: expect(received).toMatchObject(expected)

- Expected  - 6
+ Received  + 0

@@ -1,15 +1,9 @@
  Array [
    Object {
      "attributes": Object {
        "content": "First Block",
-       "style": Object {
-         "color": Object {
-           "background": "#00ff00",
-           "text": "#ff0000",
-         },
-       },
      },
      "name": "core/paragraph",
    },
    Object {
      "attributes": Object {

Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
    at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/list-view.spec.js:653:3

@desrosj
desrosj force-pushed the fix-actions-7.0/simplify-pr-label-enforcement branch from 360e01f to 502657e Compare September 10, 2026 23:47
@desrosj desrosj self-assigned this Sep 11, 2026
@desrosj
desrosj marked this pull request as ready for review September 11, 2026 00:54
@desrosj
desrosj force-pushed the fix-actions-7.0/simplify-pr-label-enforcement branch from 502657e to a7dc206 Compare September 11, 2026 01:09
@desrosj
desrosj marked this pull request as draft September 11, 2026 03:21
Cherry-picks `d410e57a781b4bac0acb481f3916d2cf80b54a02` ("Only run
label enforcement workflow on open PRs.",
WordPress#76274) into this branch's copy of
`enforce-pr-labels.yml`: adds
`if: ${{ github.event.pull_request.state == 'open' }}` to the job, so
the workflow no longer runs against closed PRs.

The `mheap/github-action-required-labels` version pin is deliberately
left untouched — that's handled by a separate layer further up this
branch's stack. The existing `permissions:` blocks (top-level `{}`
default-deny and the job-level `pull-requests: write`) are also left
untouched; they predate this commit and aren't part of what it's
porting.
@desrosj
desrosj force-pushed the fix-actions-7.0/simplify-pr-label-enforcement branch from a7dc206 to 0cca2aa Compare September 11, 2026 17:03
@desrosj
desrosj marked this pull request as ready for review September 11, 2026 18:15
@desrosj

desrosj commented Sep 11, 2026

Copy link
Copy Markdown
Owner Author

Migrated to real upstream: WordPress#82798. Closing this fork PR.

@desrosj desrosj closed this Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant