Skip to content
Merged
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
22 changes: 22 additions & 0 deletions .github/workflows/merge-approved-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Merge Approved 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@30baa9da0b80d94dd8bdf0b6a932c46506664857
with:
pr-number: ${{ github.event.issue.number }}
secrets:
github-token: ${{ secrets.METAMASK_MOBILE_BRANCH_SYNC_TOKEN }}
Loading