-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 #28235 from MetaMask/Version-v12.7.0
Version v12.7.0 RC
- Loading branch information
Showing
499 changed files
with
21,934 additions
and
14,049 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,60 @@ | ||
#!/bin/bash | ||
set -eo pipefail | ||
|
||
# Ensure required environment variables are set | ||
if [ -z "$CIRCLE_PULL_REQUEST" ] || [ -z "$GITHUB_TOKEN" ]; then | ||
echo "This appears to be a fork or required environment variables are not set." | ||
echo "Skipping MMI tests." | ||
echo "run_mmi_tests=false" > mmi_trigger.env | ||
exit 0 | ||
fi | ||
|
||
# Extract PR number from the pull request URL | ||
PR_NUMBER=$(echo "$CIRCLE_PULL_REQUEST" | awk -F'/' '{print $NF}') | ||
|
||
# Define repository details | ||
REPO_OWNER="$CIRCLE_PROJECT_USERNAME" | ||
REPO_NAME=$(basename "$CIRCLE_REPOSITORY_URL" .git) | ||
|
||
# Fetch PR details using GitHub API | ||
PR_DETAILS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ | ||
"https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$PR_NUMBER") | ||
|
||
# Fetch submitted reviews | ||
SUBMITTED_REVIEWS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ | ||
"https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$PR_NUMBER/reviews") | ||
|
||
# Check for label 'team-mmi' | ||
LABEL_EXISTS=$(jq -r '.labels[]? | select(.name == "team-mmi") | length > 0' <<< "$PR_DETAILS") | ||
|
||
# Check for individual reviewer 'mmi' | ||
REVIEWER_REQUESTED=$(jq -r '.requested_reviewers[]? | select(.login == "mmi") | length > 0' <<< "$PR_DETAILS") | ||
|
||
# Check for team reviewer 'mmi' | ||
TEAM_REQUESTED=$(jq -r '.requested_teams[]? | select(.slug == "mmi") | length > 0' <<< "$PR_DETAILS") | ||
|
||
# Check if 'mmi' submitted a review | ||
REVIEWER_SUBMITTED=$(jq -r '.[]? | select(.user.login == "mmi") | length > 0' <<< "$SUBMITTED_REVIEWS") | ||
|
||
# Determine which condition was met and trigger tests if needed | ||
if [[ "$LABEL_EXISTS" == "true" || "$REVIEWER_REQUESTED" == "true" || "$TEAM_REQUESTED" == "true" || "$REVIEWER_SUBMITTED" == "true" ]]; then | ||
echo "run_mmi_tests=true" > mmi_trigger.env | ||
|
||
# Log exactly which condition was met | ||
echo "Conditions met:" | ||
if [[ "$LABEL_EXISTS" == "true" ]]; then | ||
echo "- Label 'team-mmi' found." | ||
fi | ||
if [[ "$REVIEWER_REQUESTED" == "true" ]]; then | ||
echo "- Reviewer 'mmi' requested." | ||
fi | ||
if [[ "$TEAM_REQUESTED" == "true" ]]; then | ||
echo "- Team 'mmi' requested." | ||
fi | ||
if [[ "$REVIEWER_SUBMITTED" == "true" ]]; then | ||
echo "- Reviewer 'mmi' submitted a review." | ||
fi | ||
else | ||
echo "run_mmi_tests=false" > mmi_trigger.env | ||
echo "Skipping MMI tests: Neither the 'team-mmi' label was found nor a reviewer from the 'MetaMask/mmi' team was assigned." | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,3 +80,6 @@ html-report/ | |
|
||
/app/images/branding | ||
/changed-files | ||
|
||
# UI Integration tests | ||
test/integration/config/assets |
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 |
---|---|---|
|
@@ -1596,6 +1596,7 @@ const state = { | |
}, | ||
}, | ||
}, | ||
openSeaEnabled: true, | ||
}, | ||
appState: { | ||
shouldClose: false, | ||
|
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
diff --git a/lib/index.js b/lib/index.js | ||
index 55b58e10eef589ff80ae33ebd1f1efe488b01153..e919c190d33ab9563f1364667fb4f5894bb6435d 100644 | ||
--- a/lib/index.js | ||
+++ b/lib/index.js | ||
@@ -211,7 +211,6 @@ var _transform = require("./transform.js"); | ||
var _transformFile = require("./transform-file.js"); | ||
var _transformAst = require("./transform-ast.js"); | ||
var _parse = require("./parse.js"); | ||
-var thisFile = require("./index.js"); | ||
; | ||
const version = exports.version = "7.25.9"; | ||
const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath; |
6 changes: 3 additions & 3 deletions
6
...babel-runtime-npm-7.24.0-7eb1dd11a2.patch → ...babel-runtime-npm-7.25.9-fe8c62510a.patch
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
File renamed without changes.
26 changes: 26 additions & 0 deletions
26
.yarn/patches/@metamask-snaps-utils-npm-8.4.1-90481bac4b.patch
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,26 @@ | ||
diff --git a/dist/json-rpc.cjs b/dist/json-rpc.cjs | ||
index 6061f7b8b42f0521b0718d616e5a12a1a7520068..11d0233a7bd4b610a99da6a3d105840e88e108e6 100644 | ||
--- a/dist/json-rpc.cjs | ||
+++ b/dist/json-rpc.cjs | ||
@@ -68,7 +68,7 @@ function createOriginRegExp(matcher) { | ||
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&'); | ||
// Support wildcards | ||
const regex = escaped.replace(/\\\*/gu, '.*'); | ||
- return RegExp(`${regex}$`, 'u'); | ||
+ return RegExp(`^${regex}$`, 'u'); | ||
} | ||
/** | ||
* Check whether an origin is allowed or not using a matcher string. | ||
diff --git a/dist/json-rpc.mjs b/dist/json-rpc.mjs | ||
index bfa1c2dbbed46a2221ef708afdb97b15db84bc1b..81bc2150cf5d6a9bdabe8d43b04352b299bc1c4d 100644 | ||
--- a/dist/json-rpc.mjs | ||
+++ b/dist/json-rpc.mjs | ||
@@ -63,7 +63,7 @@ function createOriginRegExp(matcher) { | ||
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&'); | ||
// Support wildcards | ||
const regex = escaped.replace(/\\\*/gu, '.*'); | ||
- return RegExp(`${regex}$`, 'u'); | ||
+ return RegExp(`^${regex}$`, 'u'); | ||
} | ||
/** | ||
* Check whether an origin is allowed or not using a matcher string. |
Oops, something went wrong.