Skip to content

Commit 2b9e662

Browse files
authored
Merge branch 'main' into update-fork-image
2 parents a8f9072 + 768defc commit 2b9e662

File tree

358 files changed

+122174
-6943
lines changed

Some content is hidden

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

358 files changed

+122174
-6943
lines changed

.github/actions-scripts/content-changes-table-comment.js

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ if (!APP_URL) {
2020
throw new Error(`APP_URL environment variable not set`)
2121
}
2222

23+
// the max size of the comment (in bytes)
24+
// the action we use to post the comment caps out at about 144kb
25+
// see docs-engineering#1849 for more info
26+
const MAX_COMMENT_SIZE = 125000
27+
2328
const PROD_URL = 'https://docs.github.com'
2429
const octokit = github.getOctokit(GITHUB_TOKEN)
2530

@@ -131,5 +136,25 @@ const lines = await Promise.all(
131136
return `| ${contentCell} | ${previewCell} | ${prodCell} | ${note} |`
132137
})
133138
)
134-
markdownTable += lines.join('\n')
139+
140+
// this section limits the size of the comment
141+
const cappedLines = []
142+
let underMax = true
143+
144+
lines.reduce((previous, current, index, array) => {
145+
if (underMax) {
146+
if (previous + current.length > MAX_COMMENT_SIZE) {
147+
underMax = false
148+
cappedLines.push('**Note** There are more changes in this PR than we can show.')
149+
return previous
150+
}
151+
152+
cappedLines.push(array[index])
153+
return previous + current.length
154+
}
155+
return previous
156+
}, markdownTable.length)
157+
158+
markdownTable += cappedLines.join('\n')
159+
135160
setOutput('changesTable', markdownTable)

.github/workflows/autoupdate-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
4444

4545
- name: Setup Node
46-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
46+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
4747
with:
48-
node-version: 16.15.x
48+
node-version: '16.15.0'
4949
cache: npm
5050

5151
- name: Install dependencies

.github/workflows/azure-prod-build-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ jobs:
6060
run: git lfs checkout
6161

6262
- name: Setup node
63-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
63+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
6464
with:
65-
node-version: 16.15.x
65+
node-version: '16.15.0'
6666
cache: npm
6767

6868
- name: Clone docs-early-access

.github/workflows/azure-staging-build-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ jobs:
7878
echo "DOCKER_IMAGE=${{ secrets.NONPROD_REGISTRY_SERVER }}/${{ env.IMAGE_REPO }}:${{ env.COMMIT_REF }}-${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV
7979
8080
- name: Setup node
81-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
81+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
8282
with:
83-
node-version: 16.15.x
83+
node-version: '16.15.0'
8484
cache: npm
8585

8686
- name: Clone docs-early-access

.github/workflows/browser-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ jobs:
4040
run: git lfs checkout
4141

4242
- name: Setup Node
43-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
43+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
4444
with:
45-
node-version: 16.15.x
45+
node-version: '16.15.0'
4646
cache: npm
4747

4848
- name: Install dependencies

.github/workflows/check-all-english-links.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
- name: Check out repo's default branch
2929
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
3030
- name: Setup Node
31-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
31+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
3232
with:
33-
node-version: 16.15.x
33+
node-version: '16.15.0'
3434
cache: npm
3535

3636
- name: Install dependencies

.github/workflows/check-broken-links-github-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
4343

4444
- name: Setup Node
45-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
45+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
4646
with:
47-
node-version: 16.15.x
47+
node-version: '16.15.0'
4848
cache: npm
4949

5050
- name: Install Node.js dependencies

.github/workflows/code-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
3838

3939
- name: Setup node
40-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
40+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
4141
with:
42-
node-version: 16.15.x
42+
node-version: '16.15.0'
4343
cache: npm
4444

4545
- name: Install dependencies

.github/workflows/content-changes-table-comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ jobs:
5757
run: .github/actions-scripts/get-preview-app-info.sh
5858

5959
- name: Setup Node
60-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
60+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
6161
with:
62-
node-version: 16.15.x
62+
node-version: '16.15.0'
6363
cache: npm
6464

6565
- name: Install temporary dependencies

.github/workflows/create-translation-batch-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ jobs:
116116
git commit -m "Add crowdin translations" || echo "Nothing to commit"
117117
118118
- name: 'Setup node'
119-
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
119+
uses: actions/setup-node@17f8bd926464a1afa4c6a11669539e9c1ba77048
120120
with:
121-
node-version: 16.15.x
121+
node-version: '16.15.0'
122122

123123
- run: npm ci
124124

0 commit comments

Comments
 (0)