ci: add team label workflow#9477
Draft
amitabh94 wants to merge 1 commit into
Draft
Conversation
Mirrors the add-team-label.yml workflow already used in metamask-mobile and metamask-extension, so PRs opened by money-movement team members get team-money-movement applied automatically instead of relying on manual labeling.
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.
Explanation
metamask-coreis the only one of the three major MetaMask client-adjacent repos without automated PR team-labeling —metamask-mobileandmetamask-extensionboth runadd-team-label.ymlon every PR open, applying ateam-*label based on the author's entry inMetaMask/MetaMask-planning'stopology.json. Incore, no PR has ever been labeled automatically; anyteam-*label present today was applied manually by whoever happened to remember, and that's sparse and inconsistent across every team in this repo, not specific to any one package.This adds the same workflow already proven in production in
mobile/extension, closing that gap repo-wide.Benefits:
corepackages, matching the already-proven pattern inmobile/extension.+label:team-x) for any team working in this repo.Scope note (why this is a draft): this workflow runs on every PR opened in
core, for any author, so it's a repo-wide behavior change rather than something scoped to a single team's packages. It's also worth noting the underlyingadd-team-labelaction currently fails the CI check (exit 1) for any author not registered intopology.json(e.g. external contributors, new hires, bots) — that failure mode should be understood and accepted by whoever ownscore's CI before this merges, since it will surface on PRs from every team, not just one.Blocked (2026-07-11): token-exchange access policy. The "Get planning token" step currently fails:
The token-exchange service's access policy doesn't yet allow
MetaMask/coreto request a token scoped toMetaMask/MetaMask-planning(needed to readtopology.json), even thoughmetamask-mobileandmetamask-extensionare already allowed. This requires an allowlist change on the policy side by whoever administers it — not a change to this workflow file. No existing tracked ticket for this was found; one likely needs to be filed against whatever repo/team owns that policy config before this can go green.References
.github/workflows/add-team-label.ymlin metamask-mobile and metamask-extensionChecklist
MetaMask/core→MetaMask/MetaMask-planning(see error above)