-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
chore: INFRA-2925:Adding github action to merge stable to main on comment #23118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+22
−0
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
391cf28
INFRA-2925:Adding github action to merge stable to main on comment
XxdpavelxX dbc5982
INFRA-2925: Fixed AI code review issue
XxdpavelxX f7b8352
INFRA-2925-Added comment event owners to workflow
XxdpavelxX b4a5ac2
INFRA-2925: Code review fix
XxdpavelxX b8fc30f
INFRA-2925:Added PAT token secret for merge-approved-pr.yml workflow
XxdpavelxX e56215b
INFRA-2925: Remove extra secret permissions, add commit hash
XxdpavelxX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.