Skip to content

Commit 44a609d

Browse files
authored
Merge pull request #46388 from github/repo-sync
Repo sync
2 parents 6664638 + 92991ed commit 44a609d

119 files changed

Lines changed: 2367 additions & 249 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/rulesets/docs-internal/main-branch-protection.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@
124124
"context": "early-access",
125125
"integration_id": 15368
126126
},
127+
{
128+
"context": "eslint-rules",
129+
"integration_id": 15368
130+
},
127131
{
128132
"context": "events",
129133
"integration_id": 15368

‎.github/rulesets/docs/main-branch-protection.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@
105105
"context": "early-access",
106106
"integration_id": 15368
107107
},
108+
{
109+
"context": "eslint-rules",
110+
"integration_id": 15368
111+
},
108112
{
109113
"context": "events",
110114
"integration_id": 15368

‎.github/workflows/article-api-docs.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ on:
88
paths:
99
- 'src/article-api/middleware/article.ts'
1010
- 'src/article-api/middleware/pagelist.ts'
11+
- 'src/article-api/scripts/generate-api-docs.ts'
12+
# Manual edits to generated docs must fail this check.
13+
- 'src/article-api/README.md'
1114
- .github/workflows/article-api-docs.yml
1215

1316
permissions:
1417
contents: read
1518

1619
jobs:
17-
check-content-linter-rules-docs:
20+
check-article-api-docs:
1821
runs-on: ubuntu-latest
1922
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
2023
steps:

‎.github/workflows/sync-sdk-docs.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
# Keep relocated pages in the rsync input. RELOCATED_PAGES in
101101
# src/workflows/sync-sdk-docs/normalize-sdk-docs.ts removes them and
102102
# repoints inbound links.
103-
rsync -av --exclude='.validation/' --exclude='developer-docs/' "$SDK_TMP/docs/" "$SDK_DOCS_TARGET/"
103+
rsync -av --exclude='.validation/' --exclude='developer-docs/' --exclude='AGENTS.md' --exclude='/runtime-supervised-host.md' "$SDK_TMP/docs/" "$SDK_DOCS_TARGET/"
104104
echo "Copied $(find "$SDK_DOCS_TARGET" -name '*.md' | wc -l | tr -d ' ') markdown files"
105105
106106
- name: Normalize content

‎.github/workflows/test.yml‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
matrix:
3232
# Add new matrix suites to branch protection required checks too.
3333
name:
34-
# Lists every src directory. Commented-out entries have no suite-specific tests.
34+
# Lists every src directory. Commented-out entries have no tests unless noted.
3535
# - app
3636
- archives
3737
- article-api
@@ -48,7 +48,7 @@ jobs:
4848
# - deployments
4949
# - dev-toc
5050
- early-access
51-
# - eslint-rules
51+
- eslint-rules
5252
- events
5353
- fixtures
5454
- frame
@@ -85,7 +85,7 @@ jobs:
8585
env:
8686
# These suites make no HTTP requests, so they skip the Next.js build and test server.
8787
# A suite that adds an HTTP test fails with a connection error until it's removed from this list.
88-
START_VITEST_SERVER: ${{ contains(fromJSON('["color-schemes", "content-linter", "data-directory", "ghes-releases", "journeys", "links", "observability", "products", "tools", "workflows"]'), matrix.name) && 'false' || 'true' }}
88+
START_VITEST_SERVER: ${{ contains(fromJSON('["color-schemes", "content-linter", "data-directory", "eslint-rules", "ghes-releases", "journeys", "links", "observability", "products", "tools", "workflows"]'), matrix.name) && 'false' || 'true' }}
8989

9090
steps:
9191
# Repeat each if on its step so skipped work still leaves the required check present.
@@ -171,8 +171,9 @@ jobs:
171171
run: npm run build
172172

173173
- uses: ./.github/actions/warmup-remotejson-cache
174-
# Only routing tests cover archived enterprise server URLs.
175-
if: ${{ matrix.name == 'redirects' }}
174+
# The archives and redirects suites request archived GHES redirects.json files.
175+
# keep-caches-warm.yml seeds this cache in docs-internal only; a cold warmup fetches every archived version.
176+
if: ${{ matrix.name == 'redirects' || (matrix.name == 'archives' && github.repository == 'github/docs-internal') }}
176177

177178
- uses: ./.github/actions/setup-elasticsearch
178179
if: ${{ matrix.name == 'search' || matrix.name == 'languages' }}
@@ -197,4 +198,5 @@ jobs:
197198
VITEST_FLAGS: ${{ matrix.name == 'article-api' && '--no-file-parallelism --maxWorkers=1' || '' }}
198199
# PRs render pinned autogenerated pages unless they change pipeline code or output.
199200
AUTOGENERATED_RENDER_ALL: ${{ matrix.name == 'automated-pipelines' && (github.event_name != 'pull_request' || steps.pipeline_files.outputs.any_modified == 'true') }}
200-
run: npm test -- $VITEST_FLAGS src/${{ matrix.name }}/tests/
201+
# Filter on the whole src directory so nested tests/ folders, like src/webhooks/lib/tests/, run too.
202+
run: npm test -- $VITEST_FLAGS src/${{ matrix.name }}/
-2.43 KB
-4.22 KB
-494 Bytes
-2.87 KB
-2.89 KB

0 commit comments

Comments
 (0)