-
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 branch 'develop' into brian/asset-controller-39
- Loading branch information
Showing
101 changed files
with
7,010 additions
and
6,186 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.