Skip to content

Commit 6aa4498

Browse files
temp+feat: cp-12.16.0 extend sweepstakes (#31900)
## **Description** Extend sweepstakes end date and refactor [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/31900?quickstart=1) ## **Related issues** Fixes: [#31902](#31902) ## **Manual testing steps** 1. Go to this home screen - observe that the banner is shown between the dates `2025-04-09T00:00:00Z` and `2025-04-28T23:59:59Z` 2. Change dates with following command `sudo date -I 04302025` to automatically hide banner 3. Change date back using `sudo date -I 04112025` 4. Dismiss sweepstakes banner and observe that is isn't shown anymore 5. Change dates once again after the banner has been dismissed - observe that it is still dismissed ## **Screenshots/Recordings** NA ### **Before** NA ### **After** NA ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [x] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
1 parent a78923d commit 6aa4498

File tree

796 files changed

+23904
-46048
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

796 files changed

+23904
-46048
lines changed

.circleci/config.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,7 @@ jobs:
857857
command: |
858858
TESTFILES=$(circleci tests glob "test/e2e/playwright/swap/**/*.spec.ts")
859859
echo "$TESTFILES"
860-
echo "$TESTFILES" | timeout 20m circleci tests run --command="xvfb-run xargs yarn playwright test --project=swap" verbose || true
861-
# above line makes it never fail, and these tests are going away soon
860+
echo "$TESTFILES" | timeout 20m circleci tests run --command="xvfb-run xargs yarn playwright test --project=swap" verbose
862861
no_output_timeout: 10m
863862
- slack/notify:
864863
event: fail

.depcheckrc.yml

-8
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ ignores:
8585
- '@testing-library/dom'
8686
- 'mini-css-extract-plugin'
8787
- 'webpack-cli'
88-
# preinstalled snaps
89-
- '@metamask/preinstalled-example-snap'
90-
- '@metamask/ens-resolver-snap'
91-
- '@metamask/message-signing-snap'
92-
- '@metamask/account-watcher'
93-
- '@metamask/bitcoin-wallet-snap'
94-
- '@metamask/solana-wallet-snap'
95-
- '@metamask/institutional-wallet-snap'
9688

9789
# files depcheck should not parse
9890
ignorePatterns:

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ module.exports = {
329329
* Mocha library.
330330
*/
331331
{
332-
files: ['test/e2e/**/*.spec.{js,ts}'],
332+
files: ['test/e2e/**/*.spec.js'],
333333
extends: ['@metamask/eslint-config-mocha'],
334334
rules: {
335335
// In Mocha tests, it is common to use `this` to store values or do

.github/CODEOWNERS

+1-2
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ app/scripts/controllers/swaps @MetaMask/swaps-engineers
111111
**/snaps/** @MetaMask/snaps-devs
112112
shared/constants/permissions.ts @MetaMask/snaps-devs
113113
ui/helpers/utils/permission.js @MetaMask/snaps-devs
114-
app/scripts/constants/snaps.ts @MetaMask/snaps-devs
115114

116115
# Co-owned by Confirmations and Snaps
117116
ui/components/app/metamask-template-renderer @MetaMask/confirmations @MetaMask/snaps-devs
@@ -138,5 +137,5 @@ ui/components/ui/deprecated-networks @MetaMask/metamask-assets
138137
ui/components/ui/nft-collection-image @MetaMask/metamask-assets
139138

140139
# Extension Platform
141-
.yarnrc.yml @MetaMask/extension-platform
140+
yarnrc.yml @MetaMask/extension-platform
142141
test/e2e/mock-e2e-allowlist.js @MetaMask/extension-platform

.github/scripts/identify-codeowners.ts

-281
This file was deleted.

.github/scripts/shared/pull-request.ts

-23
Original file line numberDiff line numberDiff line change
@@ -67,26 +67,3 @@ export async function retrievePullRequest(
6767

6868
return pullRequest;
6969
}
70-
71-
/**
72-
* Retrieves files changed in a specific pull request
73-
* @param octokit GitHub API client
74-
* @param repoOwner Repository owner (e.g., "MetaMask")
75-
* @param repoName Repository name (e.g., "metamask-extension")
76-
* @param prNumber Pull request number
77-
* @returns Array of filenames that were changed in the PR
78-
*/
79-
export async function retrievePullRequestFiles(
80-
octokit: InstanceType<typeof GitHub>,
81-
repoOwner: string,
82-
repoName: string,
83-
prNumber: number,
84-
): Promise<string[]> {
85-
const response = await octokit.rest.pulls.listFiles({
86-
owner: repoOwner,
87-
repo: repoName,
88-
pull_number: prNumber,
89-
});
90-
91-
return response.data.map((file) => file.filename);
92-
}

.github/workflows/add-release-label.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
with:
1818
is-high-risk-environment: false
1919
fetch-depth: 0 # This is needed to checkout all branches
20-
skip-allow-scripts: true
2120

2221
- name: Get the next semver version
2322
id: get-next-semver-version

.github/workflows/add-team-label.yml

-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ on:
44
pull_request:
55
types:
66
- opened
7-
- reopened
8-
- synchronize
97

108
jobs:
119
add-team-label:
12-
if: ${{ !github.event.pull_request.head.repo.fork }}
1310
uses: metamask/github-tools/.github/workflows/add-team-label.yml@18af6e4b56a18230d1792480e249ebc50b324927
1411
secrets:
1512
TEAM_LABEL_TOKEN: ${{ secrets.TEAM_LABEL_TOKEN }}

0 commit comments

Comments
 (0)