Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Merge Version Bump PR
name: Merge my PR

on:
# Trigger the workflow when a comment is created on an issue or pull request
issue_comment:
types: [created]

jobs:
merge-pr:
merge-version-bump-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 &&
Expand All @@ -21,5 +21,25 @@ jobs:
# 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]+$'
merge-method: 'squash'
secrets:
github-token: ${{ secrets.METAMASK_EXTENSION_BRANCH_SYNC_TOKEN }}

merge-stable-sync-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@v1
with:
pr-number: ${{ github.event.issue.number }}
# Merge PRs from stable-main-X.Y.Z into main
required-base-branch: 'main'
head-branch-pattern: '^stable-main-[0-9]+\.[0-9]+\.[0-9]+$'
merge-method: 'merge'
secrets:
github-token: ${{ secrets.METAMASK_EXTENSION_BRANCH_SYNC_TOKEN }}
25 changes: 0 additions & 25 deletions .github/workflows/merge-stable-sync-pr.yml

This file was deleted.

Loading