Skip to content

fix(release/auto-changelog): move the Unreleased link to the restored release - #326

Merged
HowardBraham merged 2 commits into
mainfrom
merge-previous-update-unreleased-link
Nov 13, 2026
Merged

HowardBraham merged 2 commits into
mainfrom
merge-previous-update-unreleased-link

Conversation

@HowardBraham

@HowardBraham HowardBraham commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

merge-previous-releases restores a finalized release's changelog section and link reference after the git merge -s ours, but left [Unreleased]: …/compare/vX...HEAD pointing at the older release it started from. The next changelog update then lists a compare range that includes the restored release.

The script now moves the [Unreleased] link to the restored version when that version is newer than the link's start. The link is left alone when it is missing, ambiguous, not a compare/vX.Y.Z...HEAD link, or already newer.

Testing

  • Two new unit tests in merge-previous-releases.test.mts.
  • Ran the real merge-previous-releases action from a fork workflow: the destination's [Unreleased] link changed from v8.0.9...HEAD to v8.1.0...HEAD, and the destination's own unreleased entry was kept.

Note

Low Risk
Scoped to release changelog merge automation with conservative no-op guards; no runtime or auth impact.

Overview
Fixes merge-previous-release-changelog so after it restores a finalized release section, the [Unreleased] GitHub compare link (…/compare/vX.Y.Z...HEAD) starts from that restored version when it is newer than the link’s current base. Missing, ambiguous, non-standard, or already-newer links are left unchanged.

main now runs this step after inserting the release reference. Two integration tests cover the forward move and the no-op when the destination already points at a newer release. CHANGELOG documents the fix under Unreleased.

Reviewed by Cursor Bugbot for commit f971353. Bugbot is set up for automated code reviews on this repo. Configure here.

Related PRs

  • github-tools #327: add-team-label falls back to team-bots for bot accounts
  • Extension #47954 and Mobile #39756: stop maintaining per-bot lists in the client repos

@HowardBraham
HowardBraham force-pushed the merge-previous-update-unreleased-link branch from 559c9f4 to f971353 Compare November 13, 2026 21:35
@HowardBraham
HowardBraham merged commit fd1b8b7 into main Nov 13, 2026
10 checks passed
@HowardBraham
HowardBraham deleted the merge-previous-update-unreleased-link branch November 13, 2026 21:53
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.
Poovarasan-Sandhanam pushed a commit to Poovarasan-Sandhanam/metamask-mobile that referenced this pull request Nov 23, 2026
…9756)

## **Description**

<!-- mms-check: type=text required=true -->

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 MetaMask#327 is released and pinned here.

## **Changelog**

<!-- mms-check: type=changelog required=true blocking=true -->

CHANGELOG entry: null

## **Related issues**

<!-- mms-check: type=issue-link required=true -->

Refs: MetaMask/github-tools#327

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
[#47954](MetaMask/metamask-extension#47954) and
Mobile [MetaMask#39756](MetaMask#39756):
the same bot-detection change in the other client

## **Manual testing steps**

<!-- mms-check: type=manual-testing required=true -->

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 MetaMask#327 is released and pinned,
the next release changelog PR from `metamask-ci[bot]` should pass `Add
team label`.

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

### **Before**

### **After**
-->

## **Pre-merge author checklist**

- [ ] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/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-mobile/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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants