Skip to content

Commit d43fc7c

Browse files
Merge branch 'main' into patch-1
2 parents b264a35 + 12ae1f4 commit d43fc7c

1,300 files changed

Lines changed: 253460 additions & 1225524 deletions

File tree

Some content is hidden

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

.github/instructions/code.instructions.md

Lines changed: 1 addition & 1 deletion

.github/instructions/content.instructions.md

Lines changed: 1 addition & 1 deletion

.github/workflows/codeql.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ on:
99
branches:
1010
- main
1111
paths:
12-
- '**/*.js'
1312
- '**/*.ts'
14-
- '**/*.jsx'
1513
- '**/*.tsx'
1614
- '.github/workflows/codeql.yml'
1715
# This is so that when CodeQL runs on a pull request, it can compare

.github/workflows/count-translation-corruptions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
pull_request:
1010
paths:
1111
- src/languages/scripts/count-translation-corruptions.ts
12-
- src/languages/lib/correct-translation-content.js
12+
- src/languages/lib/correct-translation-content.ts
1313
- .github/workflows/count-translation-corruptions.yml
1414
- .github/actions/node-npm-setup/action.yml
1515
- .github/actions/clone-translations/action.yml

.github/workflows/enterprise-dates.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: ./.github/actions/node-npm-setup
3030

31-
- name: Run src/ghes-releases/scripts/update-enterprise-dates.js
31+
- name: Run src/ghes-releases/scripts/update-enterprise-dates.ts
3232
run: npm run update-enterprise-dates
3333
env:
3434
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
# need to use a token with repo and workflow scopes for this step
4444
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
45-
commit-message: '🤖 ran src/ghes-releases/scripts/update-enterprise-dates.js'
45+
commit-message: '🤖 ran src/ghes-releases/scripts/update-enterprise-dates.ts'
4646
title: 🤖 src/ghes-releases/lib/enterprise-dates.json update
4747
body:
4848
"Hello! The GitHub Enterprise Server release dates have changed.\n\n

.github/workflows/move-content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Move content script test
77
on:
88
pull_request:
99
paths:
10-
- src/content-render/scripts/move-content.js
10+
- src/content-render/scripts/move-content.ts
1111
- src/content-render/scripts/test-move-content.ts
1212
- 'src/frame/lib/**/*.js'
1313
- .github/workflows/move-content.yml

.github/workflows/orphaned-files-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ on:
1414
- .github/workflows/orphaned-files-check.yml
1515
# In case any of the dependencies affect the script
1616
- 'package*.json'
17-
- src/assets/scripts/find-orphaned-assets.js
17+
- src/assets/scripts/find-orphaned-assets.ts
1818
- src/content-render/scripts/reusables-cli/find/unused.ts
1919
- src/workflows/walk-files.ts
20-
- src/languages/lib/languages.js
20+
- src/languages/lib/languages.ts
2121
- .github/actions/clone-translations/action.yml
2222
- .github/actions/node-npm-setup/action.yml
2323

.github/workflows/package-lock-lint.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737
run: |
3838
npm --version
3939
40+
# Save the current top-level dependencies from package-lock.json
41+
node -e "console.log(JSON.stringify(require('./package-lock.json').packages['']))" > /tmp/before.json
42+
4043
# From https://docs.npmjs.com/cli/v7/commands/npm-install
4144
#
4245
# The --package-lock-only argument will only update the
@@ -45,9 +48,16 @@ jobs:
4548
#
4649
npm install --package-lock-only --ignore-scripts --include=optional
4750
48-
# If the package.json (dependencies and devDependencies) is
49-
# in correct sync with package-lock.json running the above command
50-
# should *not* make an edit to the package-lock.json. I.e.
51-
# running `git status` should
52-
# say "nothing to commit, working tree clean".
53-
git diff --exit-code
51+
# Extract the top-level dependencies after regeneration
52+
node -e "console.log(JSON.stringify(require('./package-lock.json').packages['']))" > /tmp/after.json
53+
54+
# Compare only the top-level package dependencies
55+
# This ignores platform-specific differences in nested dependency resolution
56+
# (like "peer" flags) that don't affect actual installed versions
57+
if ! diff /tmp/before.json /tmp/after.json; then
58+
echo "ERROR: Top-level dependencies in package-lock.json are out of sync with package.json"
59+
echo "Please run 'npm install' locally and commit the updated package-lock.json"
60+
exit 1
61+
fi
62+
63+
echo "✓ Top-level dependencies are in sync"

.github/workflows/reviewers-docs-engineering.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
- reopened
1616
- synchronize
1717
paths:
18-
- '**.js'
1918
- '**.ts'
2019
- '**.tsx'
2120
- '**.scss'

.github/workflows/sync-codeql-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
9393
branchCheckout=$(git checkout -b $branchname)
9494
if [[ ! $? -eq 0 ]]; then
95-
echo "Branch $branchname already exists in `github/docs-internal`. Exiting..."
95+
echo "Branch $branchname already exists in 'github/docs-internal'. Exiting..."
9696
exit 0
9797
fi
9898
git add .

0 commit comments

Comments
 (0)