Skip to content

feat(merge-approved-pr): update approval checks (MCRM-186) - #324

Merged
tommasini merged 3 commits into
mainfrom
mcrm-186-bind-merge-approval-to-head
Nov 16, 2026
Merged

tommasini merged 3 commits into
mainfrom
mcrm-186-bind-merge-approval-to-head

Conversation

@tommasini

@tommasini tommasini commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Description

Details are tracked internally in MCRM-186.


Note

Medium Risk
Changes release automation merge gates and version-bump rules; misconfiguration could block legitimate release PRs, but the intent is tighter safety on auto-merge paths.

Overview
Hardens merge-approved-pr so automated merges only run under stricter, commit-pinned conditions. PR heads must come from the same repository (forks are rejected), release-team approval must target the current head SHA (stale approvals after new pushes no longer qualify), and the final merge passes sha so GitHub aborts if the branch moves during the workflow.

When verify-version-bump is enabled, validation still requires a package.json version change but now also allows optional Mobile native version lines (versionName in android/app/build.gradle, MARKETING_VERSION in ios/MetaMask.xcodeproj/project.pbxproj). Every changed file must be one of those paths, only version lines may differ, and all files must bump from the same old version to the same new valid semver increment. CHANGELOG.md documents these behavioral changes under Unreleased.

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

…pository, accept Mobile version files

Co-authored-by: Cursor <cursoragent@cursor.com>
@tommasini tommasini self-assigned this Nov 13, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@tommasini tommasini changed the title feat(merge-approved-pr): bind approval to the head commit and same repository, accept Mobile version files feat(merge-approved-pr): update approval checks (MCRM-186) Nov 16, 2026
…pproval-to-head

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	CHANGELOG.md
@tommasini
tommasini marked this pull request as ready for review November 16, 2026 16:58

@Cal-L Cal-L left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tommasini
tommasini merged commit bb203b4 into main Nov 16, 2026
10 checks passed
@tommasini
tommasini deleted the mcrm-186-bind-merge-approval-to-head branch November 16, 2026 22:58
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