Repository navigation
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 |
There was a problem hiding this comment.
🟡 Changes recommended
The temporary 0.01 threshold causes production review requests at just 1% relevance, while the demo workflow fails on fork PRs without the API key and duplicates production jobs on same-repository PRs.
1 open issue
What changed in this PR
Updates review routing to use a dedicated GitHub App, enabling team review requests and clearer attribution instead of requests from github-actions.
Changes:
- Generates a scoped App token for requesting reviews.
- Routes all nine design-system rules to
WordPress/gutenberg-components. - Adds a temporary demonstration workflow and lowers the tooling rule’s threshold for testing.
| File | Description |
|---|---|
.github/workflows/review-routing.yml |
Uses a scoped GitHub App token for review requests. |
.github/workflows/review-routing-demo.yml |
Adds a temporary pull_request demonstration workflow. |
.github/review-routing/design-system-tooling.md |
Assigns the team and temporarily lowers the threshold. |
.github/review-routing/design-system-tokens.md |
Routes token reviews to the team. |
.github/review-routing/design-system-style-sync.md |
Routes style-sync reviews to the team. |
.github/review-routing/design-system-patterns.md |
Routes pattern reviews to the team. |
.github/review-routing/design-system-migration.md |
Routes migration reviews to the team. |
.github/review-routing/design-system-maintenance.md |
Routes maintenance reviews to the team. |
.github/review-routing/design-system-docs.md |
Routes documentation reviews to the team. |
.github/review-routing/design-system-bespoke-ui.md |
Routes bespoke UI reviews to the team. |
.github/review-routing/design-system-api.md |
Routes API reviews to the team. |
Review effort: Balanced
Assuming yes but asking in case;
|
It is complicated! But it's also good to ask these clarifying questions around security:
This is the default behavior from GitHub, and we operate with a certain level of trust that those with write access can use these values. GitHub's default |
|
To me it seems like env secrets would still be worth exploring but I'm no expert on Actions setup at all. I do trust the committers, but not the people trying to target them with attacks so good to be a bit paranoid when crafting these configs. :-) Most importantly NPM releases are fairly restricted to smaller group of people than just committer access. |
My main concern was that runs triggered by However, I had missed the fact that the I've gone and created the |


What?
Updates the
review-routing.ymlGitHub Actions workflow to use a token generated using a dedicated "Pull Request Review Router" GitHub App created under the WordPress organization.In doing so, it updates reviewers for design system review routing configurations from @ciampo and myself to the @WordPress/gutenberg-components team.
Slack discussion: https://wordpress.slack.com/archives/C08D0Q6BHNY/p1794420103676799
Why?
This has a few notable benefits and is a follow-up action item from #86682:
GITHUB_TOKENcan't read organization teams, so it can't assign a team as a reviewer. These initial set of review routes were designed with @WordPress/gutenberg-components in mind, but Automated Testing: Support multiple reviewers in review routing #86682 only added a couple individuals since we can't automate team requests. Teams are a better way to distribute ownership and centrally manage membership, and avoids the need for code changes when changing participation.GITHUB_TOKEN, we can constrain the app to the specific scopes it needs for reading the pull request and teams, and assigning reviewers.How?
Uses GitHub's official
actions/create-github-app-tokenaction, following documented instructions for creating a token with specific permissions, and following a similar approach already used for plugin releases.Testing Instructions
The pull request includes a few temporary commits to help demonstrate this as working.
review-routing-demo.ymlis a temporary workflow which is identical toreview-routing.ymlexcept it uses thepull_requestevent so that it runs in the context of this pull request (pull_request_targetruns intrunk).With these changes, we should hopefully see @WordPress/gutenberg-components requested as reviewers of this pull request.
Use of AI Tools
Researched and implemented in coordination with Claude Code + Opus 5.5.