Skip to content

Commit 3fbe311

Browse files
authored
Merge pull request #40933 from github/repo-sync
Repo sync
2 parents 96b7249 + e8be837 commit 3fbe311

File tree

113 files changed

+611
-503
lines changed

Some content is hidden

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

113 files changed

+611
-503
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/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'

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,4 @@ ARG BUILD_SHA
152152
ENV BUILD_SHA=$BUILD_SHA
153153

154154
# Entrypoint to start the server
155-
# Note: Currently we have to use tsx because
156-
# we have a mix of `.ts` and `.js` files with multiple import patterns
157155
CMD ["node_modules/.bin/tsx", "src/frame/server.ts"]

Dockerfile.openapi_decorator

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ ADD --chown=node:node data /openapi-check/data
1616

1717
RUN npm ci -D
1818

19-
ENTRYPOINT ["node", "/openapi-check/src/rest/scripts/openapi-check.js"]
19+
ENTRYPOINT ["node", "/openapi-check/src/rest/scripts/openapi-check.ts"]

0 commit comments

Comments
 (0)