Skip to content

Commit 39cebbb

Browse files
committed
2 parents 05e8246 + 23098e8 commit 39cebbb

File tree

2,331 files changed

+129634
-24948
lines changed

Some content is hidden

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

2,331 files changed

+129634
-24948
lines changed

.github/CODEOWNERS

Lines changed: 66 additions & 41 deletions
Large diffs are not rendered by default.

.github/actions/setup-for-scripts/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Set up repo for running scripts
44
runs:
55
using: composite
66
steps:
7-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
7+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
88
with:
99
node-version: '20'
1010
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0

.github/workflows/CI.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
matrix: ${{ steps.matrix.outputs.matrix }}
3131

3232
steps:
33-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3434
with:
3535
# Need this to be able to inquire about origin/master
3636
filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
3737
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
38-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
38+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
3939
with:
4040
node-version: '20'
4141

@@ -62,12 +62,12 @@ jobs:
6262
fail-fast: false
6363

6464
steps:
65-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
65+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6666
with:
6767
# Need this to be able to inquire about origin/master
6868
filter: blob:none # https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/
6969
fetch-depth: 0 # Default is 1; need to set to 0 to get the benefits of blob:none.
70-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
70+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
7171
with:
7272
node-version: '20'
7373

@@ -87,7 +87,7 @@ jobs:
8787
echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT
8888
8989
- name: Restore pnpm cache
90-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
90+
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
9191
with:
9292
path: ${{ steps.pnpm-cache.outputs.store }}
9393
key: ${{ runner.os }}-pnpm-store-cache-
@@ -115,7 +115,7 @@ jobs:
115115
if: ${{ github.event_name == 'pull_request' }}
116116

117117
- name: Upload suggestions
118-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
118+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
119119
with:
120120
name: suggestions_${{ matrix.shardId }}_${{ matrix.shardCount }}
121121
if-no-files-found: ignore
@@ -132,14 +132,14 @@ jobs:
132132
- test
133133

134134
steps:
135-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
135+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
136136
- uses: ./.github/actions/setup-for-scripts
137137

138138
- name: Get suggestions dir
139139
id: suggestions-dir
140140
run: echo "path=$(node ./scripts/get-suggestions-dir.js)" >> "$GITHUB_OUTPUT"
141141

142-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
142+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
143143
with:
144144
path: ${{ steps.suggestions-dir.outputs.path }}
145145
merge-multiple: true
@@ -162,7 +162,7 @@ jobs:
162162
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
163163

164164
steps:
165-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
165+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
166166
- uses: ./.github/actions/setup-for-scripts
167167

168168
- run: pnpm tsc -p ./scripts

.github/workflows/UpdateCodeowners.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
2222

2323
steps:
24-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525
with:
2626
fetch-depth: 0
2727

@@ -32,7 +32,7 @@ jobs:
3232

3333
- run: pnpm run update-codeowners
3434

35-
- uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
35+
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
3636
with:
3737
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
3838
commit_message: '🤖 Update CODEOWNERS'

.github/workflows/format-and-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
1616
steps:
17-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
with:
1919
# Use a deploy key so that CI triggers on pushes; we want to know if formatting broke something.
2020
ssh-key: ${{ secrets.DEPLOY_KEY }}
@@ -24,7 +24,7 @@ jobs:
2424
id: date
2525
run: echo "date=$(/bin/date -u "+%Y-%m-%d")" >> $GITHUB_OUTPUT
2626

27-
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
27+
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
2828
with:
2929
# dprint caches info about the files in the repo to skip formatting them.
3030
# However, since package.json and .dprint.jsonc don't change very often,
@@ -40,7 +40,7 @@ jobs:
4040
4141
- run: pnpm dprint fmt
4242

43-
- uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
43+
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
4444
with:
4545
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
4646
commit_message: '🤖 dprint fmt'

.github/workflows/ghostbuster.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
2424

2525
steps:
26-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- uses: ./.github/actions/setup-for-scripts
2828
- run: node ./scripts/ghostbuster.js > ${{ runner.temp }}/comment.md
2929
env:
@@ -42,7 +42,7 @@ jobs:
4242
fi
4343
4444
- if: ${{ inputs.skipPR != 'true' }}
45-
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
45+
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
4646
with:
4747
token: ${{ secrets.GITHUB_TOKEN }}
4848
commit-message: 'Remove contributors with deleted accounts #no-publishing-comment'

.github/workflows/lint-md.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
1313
steps:
14-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1515
- uses: ./.github/actions/setup-for-scripts
1616
- run: pnpm remark --frail . .github

.github/workflows/pnpm-cache.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
runs-on: ubuntu-latest
1212
if: ${{ github.repository == 'DefinitelyTyped/DefinitelyTyped' }}
1313
steps:
14-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
15-
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
1616
with:
1717
node-version: '20'
1818
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
@@ -27,7 +27,7 @@ jobs:
2727
run: pnpm install
2828

2929
- name: Save pnpm cache
30-
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
30+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
3131
with:
3232
path: ${{ steps.pnpm-cache.outputs.store }}
3333
key: ${{ runner.os }}-pnpm-store-cache-${{ steps.pnpm-cache.outputs.date }}

.github/workflows/support-window.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
if: github.repository == 'DefinitelyTyped/DefinitelyTyped'
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2727
- uses: ./.github/actions/setup-for-scripts
2828

2929
- name: Fetch TypeScript versions and release dates from npm
@@ -43,7 +43,7 @@ jobs:
4343
- name: Make SVG diagram
4444
run: node --experimental-json-modules scripts/support-window > docs/support-window.svg
4545

46-
- uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v7.0.0
46+
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
4747
with:
4848
commit_author: 'TypeScript Bot <typescriptbot@microsoft.com>'
4949
commit_message: '🤖 Update support window'

dangerfile.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import fs = require("fs");
2-
import os = require("os");
3-
import path = require("path");
4-
import cp = require("child_process");
51
import { mangleScopedPackage, suggestionsDir } from "@definitelytyped/utils";
62
import { danger, fail, markdown } from "danger";
3+
import cp from "node:child_process";
4+
import fs from "node:fs";
5+
import os from "node:os";
6+
import path from "node:path";
77
const lines: string[] = [];
88
const missingProperty = /module exports a property named '(.+?)', which is missing/;
99

@@ -129,7 +129,7 @@ if (dprintErrors.length > 0) {
129129
"## Formatting errors",
130130
"",
131131
codeBlock,
132-
...dprintErrors.join("\n\n"),
132+
dprintErrors.join("\n\n"),
133133
codeBlock,
134134
];
135135

0 commit comments

Comments
 (0)