Repository navigation
Automated Testing: Narrow the media-blocks review routing rule - #87631
Merged
Merged
Conversation
Ask for review only when a change affects the media in a block: choosing, replacing, uploading or embedding it, or editing and transforming it. Changes to the editor interface or appearance around the media, such as where a control sits or the block's layout and styles, no longer count.
🤖 PR meta 🤖🎉 PropsIf 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the |
andrewserong
approved these changes
Nov 29, 2026
andrewserong
left a comment
Contributor
There was a problem hiding this comment.
Change looks good, and thanks for including test stats in the PR description! Let's try it 👍
Vedant-Gandhi
pushed a commit
to Vedant-Gandhi/gutenberg
that referenced
this pull request
Nov 30, 2026
…ress#87631) Co-authored-by: ramonjd <ramonopoly@git.wordpress.org> Co-authored-by: andrewserong <andrewserong@git.wordpress.org>
costasovo
added a commit
to costasovo/gutenberg
that referenced
this pull request
Nov 30, 2026
…lient-autodraft-cleanup * upstream/trunk: (123 commits) Block Library: Convert Post Content, Post Template, and Post Title blocks to TypeScript (WordPress#87627) Block Library: Convert Post Date, Time to Read, Post Terms, and Post Navigation Link blocks to TypeScript (WordPress#87635) Block Library: Convert Post Excerpt, Post Featured Image, and Latest Posts blocks to TypeScript (WordPress#87636) Block Library: Convert Home Link, Footnotes, and Navigation Overlay Close blocks to TypeScript (WordPress#87637) Block Library: Convert Post Author, Post Author Biography, Post Author Name, and Avatar blocks to TypeScript (WordPress#87625) Bump qs from 6.16.0 to 6.17.1 in /test/ai-development (WordPress#87307) Block Library: Convert Post Comments Count, Post Comments Form, and Post Comments Link blocks to TypeScript (WordPress#87626) Media Editor: Default to the Details tab (WordPress#87639) Media Editor Route: Place the history controls at the left of the header (WordPress#87634) Social Links: Enable viewport state values for icon size (WordPress#86230) Automated Testing: Narrow the media-blocks review routing rule (WordPress#87631) Build: switch React scripts build to Rolldown (WordPress#87562) Block Library: Convert Term Description block to TypeScript (WordPress#87612) Block Library: Convert Site Title block to TypeScript (WordPress#87618) Block Library: Convert Term Name block to TypeScript (WordPress#87610) Block Library: Convert Site Tagline block to TypeScript (WordPress#87617) Block Library: Convert Accordion block to TypeScript (WordPress#87616) Block Library: Convert Accordion Heading block to TypeScript (WordPress#87615) Block Library: Convert Accordion Panel block to TypeScript (WordPress#87614) Block Library: Convert Accordion Item block to TypeScript (WordPress#87613) ... # Conflicts: # packages/core-data/CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Follow-up to #87425.
Narrows the
media-blocksreview routing rule. It now asks for review only when a change affects the media in a block: choosing, replacing, uploading or embedding it, or editing it, such as cropping, rotating, flipping, zooming or changing the aspect ratio. A change that only touches the editor interface or appearance around the media now scores no: where a control sits, a new place to reach an option that already exists, labels and icons, and the block's layout, alignment or styles.Why?
The rule asked about any change to how a media block "looks or behaves", so it caught nearly every change to these blocks.
clear: bothTesting Instructions
The workflow reads the rules from
trunk, so the change only takes effect after merge.media-blocksquestion shows the new text:tools/review-routing/README.md), run the command without--dry-runfor Embed: Add clear both to prevent float wrapping issues #75178, Media & Text: Keep image size and URL in sync when selecting media #84698 and Cover: Offer "Embed video from URL" in the sidebar media control #87598. Check thatmedia-blocksscores under 0.7 for each.media-blocksstill scores 0.7 or above.