Repository navigation
Automated Testing: Support multiple reviewers in review routing - #86682
Conversation
🤖 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 📦 Bundle sizeSize Change: 0 B Total Size: 8.64 MB
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome 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. Navigates the items list via UP/DOWN arrow keys in
|
…Press#86682) * Automated Testing: Support multiple reviewers in review routing * Automated Testing: Normalize to review leading at-sign Co-authored-by: aduth <aduth@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
What?
Updates review routing tool added in #86325 to support multiple reviewers being associated with a routing configuration.
Why?
GITHUB_TOKENdoes not have permissions to request review from teams. While we may be able to resolve this with a separate token that has the appropriate permissions, an interim solution may be to ping individuals instead of teams (even if those individuals are the same as on the team).How?
The current documents use YAML frontmatter to configure reviewers and threshold. So, this extends that by supporting inline YAML sequence syntax as a bracketed, comma-separated list.
Examples:
Existing support:
Now also supported:
The package doesn't actually use a YAML parser at the moment, to avoid an added dependency (currently the package is zero-dependency, which also simplifies CI setup). Eventually we may want to integrate a proper YAML parser here, in which case it could also be specified as any valid YAML sequence. Currently, the goal is that the configuration as currently supported is valid YAML syntax, but not all valid YAML syntax is supported.
The changes also include some small normalization to allow names to be specified with or without a leading
@. Previously this was strict and could fail if someone included the@. It's fairly straightforward to normalize, which improves developer experience.Testing Instructions
Verify tests pass:
npm run test:unit tools/review-routingUse of AI Tools
Researched and implemented in coordination with Claude Code + Opus 5.5.