Skip to content

Merge Version Bump PR #674

Merge Version Bump PR

Merge Version Bump PR #674

name: Merge Version Bump PR
on:
# Trigger the workflow when a comment is created on an issue or pull request
issue_comment:
types: [created]
jobs:
merge-pr:
# Only run if the comment is on a PR and the comment body matches exactly "Merge my PR"
if: >-
github.event.issue.pull_request &&
github.event.comment.body == 'Merge my PR' &&
(
github.event.comment.author_association == 'MEMBER' ||
github.event.comment.author_association == 'OWNER'
)
uses: MetaMask/github-tools/.github/workflows/merge-approved-pr.yml@7c0ab4db1e9c1d5673fe7958e8959f1842edbebd
with:
pr-number: ${{ github.event.issue.number }}
# Merge PRs from version-bump/X.Y.Z into main
required-base-branch: 'main'
head-branch-pattern: '^version-bump/[0-9]+\.[0-9]+\.[0-9]+$'
secrets:
github-token: ${{ secrets.METAMASK_MOBILE_BRANCH_SYNC_TOKEN }}