-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Migrate to new controller packages #16547
Merged
Merged
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
cbebe2f
Migrate to new controller packages
mcmire 1469493
Support GitHub registry for draft PRs (#16549)
Gudahtt cfd2db9
Add additional allowed host to lockfile linter
Gudahtt 2b63147
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire cd9ea6e
Update LavaMoat policies
Gudahtt 18e75db
Merge branch 'develop' into migrate-to-new-controller-packages
Gudahtt a08babb
Add policy exception for nanoid
Gudahtt f5e3960
Add additional nanoid overrides
Gudahtt e0bf6c4
Merge branch 'develop' into migrate-to-new-controller-packages
Gudahtt 15b5841
Update LavaMoat policies again
Gudahtt ea58338
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire 0f96d68
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire 7f9747c
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire 4392e94
Bump controller packages
mcmire 8a6a716
Update lavamoat
mcmire a2d7932
Bump controller packages
mcmire 96ffd3a
Update packages to v1.0.0
Gudahtt bd0cf50
Expand gitignore comment
Gudahtt 2f7761c
Merge remote-tracking branch 'origin/develop' into migrate-to-new-con…
Gudahtt 762795a
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire ca210aa
Merge branch 'develop' into migrate-to-new-controller-packages
mcmire ab9bb42
Merge remote-tracking branch 'origin/develop' into migrate-to-new-con…
Gudahtt ec2be79
Unpin controller dependencies, using ^ range instead
Gudahtt 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 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 |
---|---|---|
|
@@ -14,6 +14,9 @@ executors: | |
docker: | ||
- image: koalaman/shellcheck-alpine@sha256:dfaf08fab58c158549d3be64fb101c626abc5f16f341b569092577ae207db199 | ||
|
||
orbs: | ||
gh: circleci/[email protected] | ||
|
||
workflows: | ||
test_and_release: | ||
jobs: | ||
|
@@ -206,6 +209,27 @@ jobs: | |
- checkout | ||
- restore_cache: | ||
key: dependency-cache-v1-{{ checksum "yarn.lock" }} | ||
- gh/install | ||
- run: | ||
name: Set IS_DRAFT environment variable | ||
command: | | ||
PR_NUMBER="${CIRCLE_PULL_REQUEST##*/}" | ||
if [ -n "$PR_NUMBER" ] | ||
then | ||
echo "IS_DRAFT=$(gh pr view --json isDraft --jq '.isDraft' "$PR_NUMBER")" >> "$BASH_ENV" | ||
source "$BASH_ENV" | ||
else | ||
echo "Not a PR; skipping" | ||
fi | ||
- run: | ||
name: Setup registry config for using package previews on draft PRs | ||
command: | | ||
if [[ $IS_DRAFT == 'true' ]] | ||
then | ||
printf '%s\n\n%s' '@metamask:registry=https://npm.pkg.github.com' "//npm.pkg.github.com/:_authToken=${GITHUB_PACKAGE_READ_TOKEN}" > .npmrc | ||
else | ||
echo "Not draft; skipping GitHub registry setup" | ||
fi | ||
- run: | ||
name: Install deps | ||
command: | | ||
|
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
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
2 changes: 1 addition & 1 deletion
2
app/scripts/lib/rpc-method-middleware/createMethodMiddleware.js
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a temporary change and I can bring this out into a separate PR. For now, I've explained how this is used in the PR description. We want to gitignore it because if it's used for testing we don't want people's access tokens to end up in the repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I guess if we have the CircleCI config in this branch, we can have this here too since they're related.