Skip to content

Commit 76b966f

Browse files
Merge branch 'main' into patch-1
2 parents 518ac6d + 46f57e1 commit 76b966f

File tree

1,072 files changed

+239062
-1209688
lines changed

Some content is hidden

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

1,072 files changed

+239062
-1209688
lines changed

.github/instructions/code.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For code reviews, follow guidelines, tests, and validate instructions. For creat
1515
- Be careful fetching full HTML pages off the internet. Prefer to use gh cli whenever possible for github.com. Limit the number of tokens when grabbing HTML.
1616
- Avoid pull requests with over 300 lines of code changed. When significantly larger, offer to split up into smaller pull requests if possible.
1717
- All new code should be written in TypeScript and not JavaScript.
18-
- We use absolute imports, relative to the `src` directory, using the `@` symbol. For example, `getRedirect` which lives in `src/redirects/lib/get-redirect.js` can be imported with `import getRedirect from '@/redirects/lib/get-redirect'`. The same rule applies for TypeScript (`.ts`) imports, e.g. `import type { GeneralSearchHit } from '@/search/types'`
18+
- We use absolute imports, relative to the `src` directory, using the `@` symbol. For example, `getRedirect` which lives in `src/redirects/lib/get-redirect.ts` can be imported with `import getRedirect from '@/redirects/lib/get-redirect'`. The same rule applies for TypeScript (`.ts`) imports, e.g. `import type { GeneralSearchHit } from '@/search/types'`
1919

2020
## Tests
2121

.github/instructions/content.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Before committing content changes, always:
1414
1. **Use the content linter** to validate content: `npm run lint-content -- --paths <file-paths>`
1515
2. **Check for proper variable usage** in your content
1616
3. **Verify [AUTOTITLE] links** point to existing articles
17-
4. **Run tests** on changed content: `npm run test -- src/content-render/tests/render-changed-and-deleted-files.js`
17+
4. **Run tests** on changed content: `npm run test -- src/content-render/tests/render-changed-and-deleted-files.ts`
1818

1919
## Bullet lists
2020

.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'

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Docs changelog
22

3+
**24 October 2025**
4+
5+
To support the enterprise roles and teams public preview, we:
6+
7+
* Created a new concepts category in the [enterprise admin](https://docs.github.com/en/enterprise-cloud@latest/admin) docs aimed at onboarding administrators, including new articles on roles and teams in an enterprise.
8+
* Built a user journey for setting up roles, teams, and apps to simplify administration, starting with [Identifying the roles required by your enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-roles-in-your-enterprise/identify-role-requirements).
9+
* Published how-to content on [creating custom roles](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-roles-in-your-enterprise/create-custom-roles), [creating enterprise teams](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-users-in-your-enterprise/create-enterprise-teams), and [assigning roles](https://docs.github.com/en/enterprise-cloud@latest/admin/managing-accounts-and-repositories/managing-roles-in-your-enterprise/assign-roles).
10+
* Communicated new conceptual frameworks and best practices for enterprise accounts, including [Best practices for organizing work in your enterprise](https://docs.github.com/en/enterprise-cloud@latest/admin/concepts/best-practices) and [Enterprise accounts](https://docs.github.com/en/enterprise-cloud@latest/admin/concepts/enterprise-fundamentals/enterprise-accounts).
11+
12+
<hr>
13+
14+
**17 October 2025**
15+
16+
We have updated the [Account and profile](https://docs.github.com/en/account-and-profile) and [Subscriptions and notifications](https://docs.github.com/en/subscriptions-and-notifications) docs for improved usability, scannability, and information architecture.
17+
18+
To support accomplishing tasks without context switching or sifting through unrelated content, articles are now organized by content type and focused on jobs-to-be-done. Additionally, related information is now linked from content type to content type.
19+
20+
<hr>
21+
322
**14 October 2025**
423

524
We've added a new tutorial about how to [Review AI-generated code](https://docs.github.com/en/copilot/tutorials/review-ai-generated-code). The article gives techniques to verify and validate AI-generated code, and also suggests how Copilot can help with reviews.

0 commit comments

Comments
 (0)