Skip to content

Commit fe158ab

Browse files
authored
Merge pull request #44112 from github/repo-sync
Repo sync
2 parents affd6e0 + aa7ef35 commit fe158ab

202 files changed

Lines changed: 12776 additions & 2349 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/workflows/reviewers-docs-engineering.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
${{ github.repository == 'github/docs-internal' &&
4141
!github.event.pull_request.draft &&
4242
!contains(github.event.pull_request.labels.*.name, 'reviewers-docs-engineering') &&
43+
!contains(github.event.pull_request.labels.*.name, 'lockfile-churn-only') &&
4344
github.event.pull_request.head.ref != 'repo-sync' }}
4445
runs-on: ubuntu-latest
4546
env:
@@ -50,7 +51,45 @@ jobs:
5051
- name: Checkout repository
5152
uses: actions/checkout@v6.0.1
5253

54+
# Detect PRs that only changed package-lock.json (no engineering source files).
55+
# These are usually cross-platform `npm install` churn from contributors
56+
# editing content. We comment with reset instructions instead of pulling in
57+
# docs-engineering for review.
58+
- name: Detect lockfile-only churn
59+
id: detect
60+
run: |
61+
changed=$(gh pr diff "$PR" --name-only)
62+
echo "Changed files:"
63+
echo "$changed"
64+
lockfile=$(echo "$changed" | grep -c '^package-lock\.json$' || true)
65+
other_eng=$(echo "$changed" | grep -cE '(\.tsx?$|\.scss$|^src/|^package\.json$|^\.github/|^config/|^\.devcontainer/|Dockerfile)' || true)
66+
if [ "$lockfile" -gt 0 ] && [ "$other_eng" -eq 0 ]; then
67+
echo "lockfile_only=true" >> "$GITHUB_OUTPUT"
68+
else
69+
echo "lockfile_only=false" >> "$GITHUB_OUTPUT"
70+
fi
71+
72+
- name: Comment and label lockfile-only PRs
73+
if: steps.detect.outputs.lockfile_only == 'true'
74+
run: |
75+
cat > /tmp/lockfile-churn-body.md <<'EOF'
76+
_Posted by Copilot on behalf of docs-engineering._
77+
78+
This PR includes `package-lock.json` changes but no engineering files. Please reset the lockfile:
79+
80+
```
81+
git checkout origin/main -- package-lock.json
82+
git commit -m "Reset package-lock.json"
83+
git push
84+
```
85+
86+
If the lockfile change is intentional, remove the `lockfile-churn-only` label and request docs-engineering review.
87+
EOF
88+
gh pr comment "$PR" --body-file /tmp/lockfile-churn-body.md
89+
gh pr edit "$PR" --add-label lockfile-churn-only
90+
5391
- name: Add docs engineering as a reviewer
92+
if: steps.detect.outputs.lockfile_only != 'true'
5493
uses: ./.github/actions/retry-command
5594
with:
5695
command: gh pr edit $PR --add-reviewer github/docs-engineering --add-label reviewers-docs-engineering

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
- audit-logs
4343
- automated-pipelines
4444
# - bookmarklets
45-
- changelogs
4645
# - code-scanning
4746
# - codeql-cli
4847
- color-schemes

config/moda/configuration/default/env.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ data:
99
RATE_LIMIT_MAX: '21'
1010
# Moda uses a non-default port for sending datadog metrics
1111
DD_DOGSTATSD_PORT: '28125'
12-
# OTel distributed tracing — sends spans to OTel Collector via OTLP/HTTP (proto).
13-
# Uses stamp address (not mesh) since docs-internal is not on the service mesh.
14-
# See https://thehub.github.com/epd/engineering/dev-practicals/observability/distributed-tracing/instrumentation/
15-
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: 'https://otelcol.service.%stamp%.github.net/v1/traces'
12+
# NodeSDK auto-enables OTLP metrics and logs exporters when these env vars
13+
# are unset. We only want traces, so explicitly disable the others to avoid
14+
# spamming export errors. See https://opentelemetry.io/docs/specs/otel/protocol/exporter/
15+
OTEL_METRICS_EXPORTER: 'none'
16+
OTEL_LOGS_EXPORTER: 'none'
17+
# OTel traces endpoint is set per-environment (see production/env.yaml).
18+
# Stagings don't have OTEL_EXPORTER_OTLP_TRACES_HEADERS, so they don't
19+
# export traces — tracing.ts gates SDK startup on the endpoint env var.

config/moda/configuration/production/env.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ data:
1313
# Equivalent to HEAVEN_DEPLOYED_ENV === 'production'
1414
MODA_PROD_SERVICE_ENV: 'true'
1515
# OTel distributed tracing — sends spans to OTel Collector via OTLP/HTTP (proto).
16-
# Uses stamp address (not mesh) since docs-internal is not on the service mesh.
16+
# Uses %site% template (not %stamp%) since docs-internal is not on the service
17+
# mesh and not on a Proxima stamp (region: iad, profile: general). %site%
18+
# interpolates to the cluster's site (e.g. iad), giving a hostname like
19+
# otelcol.service.iad.github.net that resolves from production pods.
1720
# See https://thehub.github.com/epd/engineering/dev-practicals/observability/distributed-tracing/instrumentation/
18-
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: 'https://otelcol.service.%stamp%.github.net/v1/traces'
21+
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: 'https://otelcol.service.%site%.github.net/v1/traces'

content/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ shortTitle: Contributing to projects
149149
### `layout`
150150

151151
- Purpose: Render the proper page layout.
152-
- Type: `String` that matches the name of the layout.
153-
For a layout named `components/landing`, the value would be `product-landing`.
152+
- Type: `String` that matches the name of a supported layout. See `layoutNames` in `src/frame/lib/frontmatter.ts` for the authoritative list (for example, `discovery-landing`, `journey-landing`, `bespoke-landing`, `category-landing`, `toc-landing`, `inline`).
154153
- Optional. If omitted, `DefaultLayout` is used.
155154

156155
### `children`

content/account-and-profile/index.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ introLinks:
66
quickstart: /account-and-profile/get-started/account
77
overview: /account-and-profile/get-started/profile
88
layout: discovery-landing
9-
changelog:
10-
label: profiles, github-themes
11-
versions:
12-
fpt: '*'
13-
ghec: '*'
149
versions:
1510
fpt: '*'
1611
ghes: '*'

content/actions/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ intro: 'Automate, customize, and execute your software development workflows rig
55
introLinks:
66
overview: /actions/get-started/understand-github-actions
77
quickstart: /actions/get-started/quickstart
8-
changelog:
9-
label: actions
108
redirect_from:
119
- /articles/automating-your-workflow-with-github-actions
1210
- /articles/customizing-your-project-with-github-actions

content/admin/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ redirect_from:
6464
- /insights/installing-and-configuring-github-insights/managing-data-in-github-insights/managing-repositories
6565
- /admin/configuration/configuring-your-enterprise/configuring-data-encryption-for-your-enterprise
6666
- /admin/guides
67-
changelog:
68-
label: enterprise
6967
layout: discovery-landing
7068
includedCategories:
7169
- Get started with GitHub Enterprise

content/apps/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ carousels:
1717
- /apps/oauth-apps/building-oauth-apps/differences-between-github-apps-and-oauth-apps
1818
- /apps/creating-github-apps/writing-code-for-a-github-app/building-a-github-app-that-responds-to-webhook-events
1919
- /apps/creating-github-apps/about-creating-github-apps/best-practices-for-creating-a-github-app
20-
changelog:
21-
label: apps
2220
versions:
2321
fpt: '*'
2422
ghes: '*'

content/authentication/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ versions:
2020
ghec: '*'
2121
introLinks:
2222
overview: /authentication/keeping-your-account-and-data-secure/about-authentication-to-github
23-
changelog:
24-
label: '2FA,authentication,security keys,SSH,token authentication'
2523
layout: discovery-landing
2624
carousels:
2725
recommended:

0 commit comments

Comments
 (0)