Skip to content

Commit 9724c1b

Browse files
committed
Merge branch 'main' into mikesposito/deps/smart-transaction-controller
2 parents 51467d4 + 40c5a93 commit 9724c1b

File tree

298 files changed

+7641
-2029
lines changed

Some content is hidden

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

298 files changed

+7641
-2029
lines changed

.depcheckrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ ignores:
2828
- '@metamask/test-dapp'
2929
- '@metamask/test-dapp-multichain'
3030
- '@metamask/test-dapp-solana'
31+
- '@metamask/snap-simple-keyring-site'
3132
- '@metamask/design-tokens' # Only imported in index.css
3233
- '@tsconfig/node22' # required dynamically by TS, used in tsconfig.json
3334
- '@sentry/cli' # invoked as `sentry-cli`

.github/scripts/check-template-and-add-labels.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -183,29 +183,29 @@ async function main(): Promise<void> {
183183
}
184184

185185
} else if (labelable.type === LabelableType.PullRequest) {
186+
// Check changelog entry for all PRs (regardless of template match)
187+
const hasNoChangelogLabel = labelable.labels?.some(
188+
(label) => label.name === "no-changelog"
189+
);
190+
191+
// Require changelog entry
192+
if (hasNoChangelogLabel) {
193+
console.log(`PR ${labelable.number} has "no-changelog" label. Skipping changelog entry check.`);
194+
} else if (!hasChangelogEntry(labelable.body)) {
195+
const errorMessage = `PR is missing a valid "CHANGELOG entry:" line.`;
196+
console.log(errorMessage);
197+
198+
core.setFailed(errorMessage);
199+
process.exit(1);
200+
}
201+
186202
if (templateType === TemplateType.PullRequest) {
187203
console.log("PR matches 'pull-request-template.md' template.");
188204
await removeLabelFromLabelableIfPresent(
189205
octokit,
190206
labelable,
191207
invalidPullRequestTemplateLabel,
192208
);
193-
194-
// Skip changelog check if PR has "no-changelog" label
195-
const hasNoChangelogLabel = labelable.labels?.some(
196-
(label) => label.name === "no-changelog"
197-
);
198-
199-
// Require changelog entry
200-
if (hasNoChangelogLabel) {
201-
console.log(`PR ${labelable.number} has "no-changelog" label. Skipping changelog entry check.`);
202-
} else if (!hasChangelogEntry(labelable.body)) {
203-
const errorMessage = `PR is missing a valid "CHANGELOG entry:" line.`;
204-
console.log(errorMessage);
205-
206-
core.setFailed(errorMessage);
207-
process.exit(1);
208-
}
209209
} else {
210210
const errorMessage = `PR body does not match template ('pull-request-template.md').\n\nMake sure PR's body includes all section titles.\n\nSections titles are listed here: https://github.com/MetaMask/metamask-extension/blob/main/.github/scripts/shared/template.ts#L40-L47`;
211211
console.log(errorMessage);

.github/workflows/auto-create-release-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ jobs:
77
extract:
88
if: ${{ github.ref_type == 'branch' && (startsWith(github.ref, 'refs/heads/Version-v') || startsWith(github.ref, 'refs/heads/release/')) }}
99
runs-on: ubuntu-latest
10+
timeout-minutes: 30
1011
outputs:
1112
semver: ${{ steps.out.outputs.semver }}
1213
steps:

.github/workflows/auto-update-pr-targeting-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
auto-update:
1111
name: Auto-update
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 30
1314
env:
1415
YARN_ENABLE_IMMUTABLE_INSTALLS: false
1516
YARN_ENABLE_HARDENED_MODE: false

.github/workflows/build-storybook.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
build-storybook:
1111
name: Build storybook
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 30
1314
env:
1415
# For a `pull_request` event, the branch is `github.head_ref``.
1516
# For a `push` event, the branch is `github.ref_name`.

.github/workflows/build-ts-migration-dashboard.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
build-ts-migration-dashboard:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 30
1213
env:
1314
# For a `pull_request` event, the branch is `github.head_ref``.
1415
# For a `push` event, the branch is `github.ref_name`.

.github/workflows/check-attributions.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
check-attributions:
1111
runs-on: ubuntu-latest
12+
timeout-minutes: 30
1213
steps:
1314
- name: Checkout and setup environment
1415
uses: MetaMask/action-checkout-and-setup@v1

.github/workflows/check-pr-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ concurrency:
1717
jobs:
1818
check-pr-labels:
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30
2021
permissions:
2122
pull-requests: read
2223

.github/workflows/check-release-tag.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
# Only run on PRs targeting stable
1818
if: github.base_ref == 'stable'
1919
runs-on: ubuntu-latest
20+
timeout-minutes: 30
2021
permissions:
2122
contents: read
2223
pull-requests: read

.github/workflows/check-template-and-add-labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
jobs:
1111
check-template-and-add-labels:
1212
runs-on: ubuntu-latest
13+
timeout-minutes: 30
1314
if: ${{ github.event_name != 'merge_group' }} # Skip this step for merge_group events
1415
steps:
1516
- name: Checkout and setup environment

0 commit comments

Comments
 (0)