Skip to content

ci: detect bot authors by type and move CLA bot to v4.0.0 - #39756

Merged
HowardBraham merged 1 commit into
mainfrom
ci-bot-detection-by-author-type
Nov 17, 2026
Merged

HowardBraham merged 1 commit into
mainfrom
ci-bot-detection-by-author-type

Conversation

@HowardBraham

@HowardBraham HowardBraham commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Release changelog PRs are authored by metamask-ci[bot], and each new bot or GitHub App has meant adding its name to a hardcoded list before the checks pass. This stops maintaining those lists.

  • check-template-and-add-labels now reads the GraphQL author type and treats Bot authors as bots. Only the accounts that are plain users (metamaskbot, sentry-io) stay listed, and issuebridge keeps its current handling.
  • The CLA bot moves from cla-signature-bot@v3.0.2 to v4.0.0, which supports glob allowlist entries. The allowlist is now the *[bot] glob plus the agent accounts whose commits resolve to a plain user: metamaskbot, crowdin-bot, cursorbot, cursoragent, Copilot and claude.

The Add team label step still fails for metamask-ci[bot] until github-tools #327 is released and pinned here.

Changelog

CHANGELOG entry: null

Related issues

Refs: MetaMask/github-tools#327

Related PRs:

  • github-tools #327: add-team-label falls back to team-bots for bot authors missing from topology.json (needed for the Add team label check on changelog PRs)
  • github-tools #326: merge-previous-releases keeps the [Unreleased] changelog link current
  • Extension #47954 and Mobile #39756: the same bot-detection change in the other client

Manual testing steps

N/A — CI-only change. The v4.0.0 CLA bot was exercised on a fork with dependabot[bot] and metamask-ci[bot] commits (passed) and a human commit (CLA requested). After github-tools #327 is released and pinned, the next release changelog PR from metamask-ci[bot] should pass Add team label.

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

The label script uses the GraphQL author type (Bot), so new GitHub Apps need no code change. The CLA allowlist uses the *[bot] glob plus the accounts that are plain users (metamaskbot, cursoragent, Copilot, claude).
@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@github-actions github-actions Bot added pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. size-S and removed pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. labels Nov 13, 2026
@metamask-ci metamask-ci Bot added the team-extension-platform Extension Platform team label Nov 13, 2026
@metamask-ci

metamask-ci Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

PR template — items to address before "Ready for review"

Warnings — informational, address before merging:

  • Screenshots/Recordings section is empty. Add an image/video for user-facing changes, logs/console output for non-user-facing changes, or write N/A if no evidence is applicable.
  • Pre-merge author checklist has only 5 of the required 8 items. Every checklist row must be present and consciously checked — do not delete rows.

See docs/readme/ready-for-review.md for the full Definition of Ready for Review.

@HowardBraham
HowardBraham marked this pull request as ready for review November 13, 2026 21:22
@HowardBraham
HowardBraham requested a review from a team as a code owner November 13, 2026 21:22
@HowardBraham HowardBraham self-assigned this Nov 13, 2026
@HowardBraham HowardBraham added DO-NOT-MERGE Pull requests that should not be merged skip-release-validation labels Nov 13, 2026
@sonarqubecloud

Copy link
Copy Markdown

@HowardBraham HowardBraham removed the DO-NOT-MERGE Pull requests that should not be merged label Nov 13, 2026
LabinatorSolutions pushed a commit to LabinatorSolutions/metamask-extension that referenced this pull request Nov 15, 2026
## **Description**

Release changelog PRs are authored by `metamask-ci[bot]`, and each new
bot or GitHub App has meant adding its name to a hardcoded list before
the checks pass. This stops maintaining those lists.

- `check-template-and-add-labels` now reads the GraphQL author type and
treats `Bot` authors as bots. Only the accounts that are plain users
(`metamaskbot`, `sentry-io`) stay listed, and `issuebridge` keeps its
current handling.
- The CLA allowlist uses the `*[bot]` glob (supported by
`cla-signature-bot@v4.0.0`) plus the agent accounts whose commits
resolve to a plain user: `metamaskbot`, `crowdin-bot`, `cursorbot`,
`cursoragent`, `Copilot` and `claude`. Commits authored by Claude Code
resolve to the `claude` user, which the glob can't match.

The `Add team label` step still fails for `metamask-ci[bot]` until
github-tools MetaMask#327 is released and pinned here.

## **Changelog**

CHANGELOG entry: null

## **Related issues**

Related PRs:

- github-tools
[MetaMask#327](MetaMask/github-tools#327):
`add-team-label` falls back to `team-bots` for bot authors missing from
`topology.json` (needed for the `Add team label` check on changelog PRs)
- github-tools
[MetaMask#326](MetaMask/github-tools#326):
merge-previous-releases keeps the `[Unreleased]` changelog link current
- Extension
[MetaMask#47954](MetaMask#47954) and
Mobile [MetaMask#39756](MetaMask/metamask-mobile#39756):
the same bot-detection change in the other client

## **Manual testing steps**

1. Open the checks on this PR and confirm `CLA` and
`check-template-and-add-labels` pass for a human author.
2. After github-tools MetaMask#327 is released and pinned, open the next release
changelog PR from `metamask-ci[bot]` and confirm
`check-template-and-add-labels` and `Add team label` both pass.

<!--
## **Screenshots/Recordings**

### **Before**

### **After**
-->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

## **Pre-merge reviewer checklist**

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
@HowardBraham
HowardBraham added this pull request to the merge queue Nov 16, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 16, 2026
@HowardBraham
HowardBraham added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 3c7847c Nov 17, 2026
117 of 119 checks passed
@HowardBraham
HowardBraham deleted the ci-bot-detection-by-author-type branch November 17, 2026 05:53
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026
@metamask-ci metamask-ci Bot added the release-8.22.0 Issue or pull request that will be included in release 8.22.0 label Nov 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-8.22.0 Issue or pull request that will be included in release 8.22.0 size-S skip-release-validation team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants