Skip to content

Commit cd33a67

Browse files
committed
Merge branch 'main' into edr/main
2 parents 042c238 + 2a280a7 commit cd33a67

File tree

165 files changed

+3235
-1234
lines changed

Some content is hidden

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

165 files changed

+3235
-1234
lines changed

.changeset/beige-ladybugs-confess.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dry-pianos-scream.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/modern-fishes-look.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/autoassign-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
script: |
1616
// each user has a chance of (p - (previousP ?? 0)) to be assigned
1717
const potentialAssignees = [
18-
["fvictorio", 0.5],
19-
["schaable", 0.75],
18+
["kanej", 1/3],
19+
["schaable", 2/3],
2020
["ChristopherDedominici", 1.0],
2121
];
2222
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: PR autoassignment
2+
3+
on:
4+
pull_request_target:
5+
types: [opened]
6+
7+
jobs:
8+
assign-new-issue:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- uses: actions/github-script@v6
14+
with:
15+
script: |
16+
const externalPrTriager = "kanej";
17+
18+
// Within the Github API PRs are issue objects
19+
const pr = await github.rest.issues.get({
20+
owner: context.issue.owner,
21+
repo: context.issue.repo,
22+
issue_number: context.issue.number
23+
});
24+
25+
const isCollaborator = ["OWNER", "MEMBER", "COLLABORATOR"].includes(pr.data.author_association)
26+
27+
if (isCollaborator) {
28+
return
29+
}
30+
31+
await github.rest.issues.addAssignees({
32+
owner: context.issue.owner,
33+
repo: context.issue.repo,
34+
issue_number: context.issue.number,
35+
assignees: [externalPrTriager],
36+
});

.github/workflows/e2e-tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ jobs:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
name: Run E2E tests on ${{ matrix.os }}
1717
runs-on: ${{ matrix.os }}
18+
env:
19+
# TODO: the e2e tests fail on windows when pnpm is used,
20+
# for what we think is a bug in pnpm. We set this env
21+
# variable to skip that combination until we find a solution.
22+
#
23+
# The failure is caused by `pnpm hardhat init` executing
24+
# `hardhat init` twice on windows, which results in the
25+
# second execution failing because `hardhat init` cannot
26+
# be run on an existing project.
27+
IS_WINDOWS: ${{ matrix.os == 'windows-latest' }}
1828
steps:
1929
- uses: actions/checkout@v2
2030
- uses: pnpm/action-setup@v2

.github/workflows/hardhat-network-helpers-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
branches: [$default-branch]
66
paths:
7+
- "packages/hardhat-core/**"
78
- "packages/hardhat-network-helpers/**"
89
- "packages/hardhat-common/**"
910
- "config/**"
1011
pull_request:
1112
branches:
1213
- "**"
1314
paths:
15+
- "packages/hardhat-core/**"
1416
- "packages/hardhat-network-helpers/**"
1517
- "packages/hardhat-common/**"
1618
- "config/**"

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
1215
steps:
1316
- name: Checkout Repo
1417
uses: actions/checkout@v2

.github/workflows/test-slow-imports-rule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install
3333
run: pnpm install --frozen-lockfile --prefer-offline
3434
- name: Add slow import
35-
run: echo 'import "lodash";' >> src/internal/constants.ts
35+
run: echo 'import "lodash";' >> src/internal/core/config/config-resolution.ts
3636
- name: Build
3737
run: pnpm build
3838
- name: Run eslint

config/eslint/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module.exports.slowImportsCommonIgnoredModules = [
77
"source-map-support/register",
88
"@nomicfoundation/hardhat-ethers",
99
"hardhat/common",
10+
"hardhat/common/bigInt",
1011
"hardhat/config",
1112
"hardhat/plugins",
1213
"hardhat/types",

0 commit comments

Comments
 (0)