-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24242 from MetaMask/Version-v11.16.0
Version v11.16.0
- Loading branch information
Showing
499 changed files
with
15,496 additions
and
6,912 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
# Takes in 3 args | ||
# - 1 - Base PR Branch Name | ||
# - 2 - Commit Hash | ||
# - 3 - PR Number | ||
|
||
BASE_PR_BRANCH_NAME="${1}" | ||
COMMIT_HASH_TO_CHERRY_PICK="${2}" | ||
PR_BRANCH_NAME="chore/cherry-pick-${3}" | ||
PR_TITLE="chore: cherry-pick #${3}" | ||
PR_BODY="This PR cherry-picks #${3}" | ||
|
||
git config user.name "MetaMask Bot" | ||
git config user.email "[email protected]" | ||
|
||
git checkout "${BASE_PR_BRANCH_NAME}" | ||
git pull | ||
git checkout -b "${PR_BRANCH_NAME}" | ||
git cherry-pick "${COMMIT_HASH_TO_CHERRY_PICK}" | ||
|
||
git push --set-upstream origin "${PR_BRANCH_NAME}" | ||
|
||
gh pr create \ | ||
--draft \ | ||
--title "${PR_TITLE}" \ | ||
--body "${PR_BODY}" \ | ||
--head "${BASE_PR_BRANCH_NAME}" |
This file contains 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
Validating CODEOWNERS rules …
This file contains 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
This file contains 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
This file contains 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,48 @@ | ||
name: Notify MMI team via Slack | ||
|
||
on: | ||
pull_request_target: | ||
branches: | ||
- develop | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- labeled | ||
|
||
jobs: | ||
process-label: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
contents: write | ||
steps: | ||
- name: Notify MMI team via Slack | ||
if: contains(github.event.pull_request.labels.*.name, 'team-mmi') | ||
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 | ||
with: | ||
status: custom | ||
fields: repo,message,commit,author,action | ||
payload: | | ||
{ | ||
"text": "A PR with label 'team-mmi' was added and requires review: ${{ github.event.pull_request.html_url }} in ${{ github.repository }}", | ||
"attachments": [ | ||
{ | ||
"color": "#2eb886", | ||
"fields": [ | ||
{ | ||
"title": "Repository", | ||
"value": "${{ github.repository }}", | ||
"short": true | ||
}, | ||
{ | ||
"title": "PR", | ||
"value": "#${{ github.event.pull_request.number }}", | ||
"short": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.MMI_LABEL_SLACK_WEBHOOK_URL }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,31 @@ | ||
name: Cherry Pick Commit | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch_name: | ||
description: 'Branch name you want the cherry-pick branch to be based from' | ||
required: true | ||
commit_hash: | ||
description: 'Commit Hash' | ||
required: true | ||
PR_number: | ||
description: 'PR # Associated with Cherry Pick' | ||
required: true | ||
|
||
|
||
jobs: | ||
cherry-pick: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Cherry Pick PR | ||
id: create-cherry-pick-pr | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
./scripts/create-cherry-pick-pr.sh ${{ github.event.inputs.branch_name }} ${{ github.event.inputs.commit_hash }} ${{ github.event.inputs.PR_number }} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
|
@@ -12,7 +12,8 @@ jobs: | |
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@72afbce2b0dbd1d903bb142cebe2d15dc307ae57 | ||
# this is a hash for actions/[email protected] | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e | ||
with: | ||
stale-issue-label: 'stale' | ||
only-issue-labels: 'type-bug' | ||
|
Oops, something went wrong.