Skip to content

Commit cfe3ed0

Browse files
authored
Merge branch 'main' into main
2 parents 1c02207 + 86bc2ea commit cfe3ed0

865 files changed

Lines changed: 806925 additions & 767756 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/changelog-agent.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,12 @@ jobs:
112112
if: steps.check_team.outputs.is_team_member == 'true'
113113
id: extract_issue
114114
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
115+
env:
116+
PR_BODY: ${{ steps.resolve_pr.outputs.pr_body }}
115117
with:
116118
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
117119
script: |
118-
const body = `${{ steps.resolve_pr.outputs.pr_body }}`;
120+
const body = process.env.PR_BODY || '';
119121
120122
// Match closing keywords followed by docs-content issue references.
121123
// Supports: closes github/docs-content#123, fixes https://github.com/github/docs-content/issues/123
@@ -224,6 +226,10 @@ jobs:
224226
if: steps.check_parent.outputs.has_parent == 'true'
225227
id: gather_context
226228
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
229+
env:
230+
PR_TITLE: ${{ steps.resolve_pr.outputs.pr_title }}
231+
PR_BODY: ${{ steps.resolve_pr.outputs.pr_body }}
232+
PR_URL: ${{ steps.resolve_pr.outputs.pr_url }}
227233
with:
228234
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
229235
script: |
@@ -254,9 +260,9 @@ jobs:
254260
const changedFiles = files.map(f => f.filename);
255261
256262
core.setOutput('pr_author', prAuthor);
257-
core.setOutput('pr_title', '${{ steps.resolve_pr.outputs.pr_title }}');
258-
core.setOutput('pr_body', `${{ steps.resolve_pr.outputs.pr_body }}`);
259-
core.setOutput('pr_url', '${{ steps.resolve_pr.outputs.pr_url }}');
263+
core.setOutput('pr_title', process.env.PR_TITLE || '');
264+
core.setOutput('pr_body', process.env.PR_BODY || '');
265+
core.setOutput('pr_url', process.env.PR_URL || '');
260266
core.setOutput('pr_number', prNumber.toString());
261267
core.setOutput('approved_reviewers', approvedReviewers.join(','));
262268
core.setOutput('changed_files', changedFiles.join('\n'));
@@ -421,14 +427,19 @@ jobs:
421427
- name: Dry run summary
422428
if: steps.generate_draft.outputs.response != '' && inputs.dry_run == true
423429
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
430+
env:
431+
PR_AUTHOR: ${{ steps.gather_context.outputs.pr_author }}
432+
PR_URL: ${{ steps.gather_context.outputs.pr_url }}
433+
PARENT_TITLE: ${{ steps.check_parent.outputs.parent_title }}
434+
DRAFT: ${{ steps.generate_draft.outputs.response }}
424435
with:
425436
script: |
426437
core.info('=== DRY RUN — no PR will be created, no Slack DM sent ===');
427-
core.info(`PR author: ${{ steps.gather_context.outputs.pr_author }}`);
428-
core.info(`Source PR: ${{ steps.gather_context.outputs.pr_url }}`);
429-
core.info(`Parent issue: ${{ steps.check_parent.outputs.parent_title }}`);
438+
core.info(`PR author: ${process.env.PR_AUTHOR || ''}`);
439+
core.info(`Source PR: ${process.env.PR_URL || ''}`);
440+
core.info(`Parent issue: ${process.env.PARENT_TITLE || ''}`);
430441
core.info('--- Generated changelog draft ---');
431-
core.info(`${{ steps.generate_draft.outputs.response }}`);
442+
core.info((process.env.DRAFT || '').replace(/^::/gm, ': :'));
432443
core.info('--- End of draft ---');
433444
434445
- name: Create changelog PR in docs-content

.github/workflows/repo-sync.yml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,29 @@ jobs:
2828
persist-credentials: false
2929

3030
- name: Sync repo to branch
31-
uses: repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88
32-
with:
33-
source_repo: https://${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}@github.com/github/${{ github.repository == 'github/docs-internal' && 'docs' || 'docs-internal' }}.git
34-
source_branch: main
35-
destination_branch: repo-sync
36-
github_token: ${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}
31+
env:
32+
SOURCE_REPO: https://${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}@github.com/github/${{ github.repository == 'github/docs-internal' && 'docs' || 'docs-internal' }}.git
33+
SOURCE_BRANCH: main
34+
DESTINATION_BRANCH: repo-sync
35+
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_REPO_SYNC }}
36+
run: |
37+
set -euo pipefail
38+
39+
: "${GH_TOKEN:?DOCS_BOT_PAT_REPO_SYNC is empty}"
40+
: "${SOURCE_REPO:?SOURCE_REPO is empty}"
41+
: "${SOURCE_BRANCH:?SOURCE_BRANCH is empty}"
42+
: "${DESTINATION_BRANCH:?DESTINATION_BRANCH is empty}"
43+
44+
git config --unset-all http."https://github.com/".extraheader || true
45+
46+
git remote remove tmp_upstream 2>/dev/null || true
47+
trap 'git remote remove tmp_upstream 2>/dev/null || true' EXIT
48+
49+
git remote set-url origin "https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
50+
git remote add tmp_upstream "${SOURCE_REPO}"
51+
52+
git fetch tmp_upstream --quiet
53+
git push origin "refs/remotes/tmp_upstream/${SOURCE_BRANCH}:refs/heads/${DESTINATION_BRANCH}" --force
3754
3855
- name: Ship pull request
3956
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3

CHANGELOG.md

Lines changed: 8 additions & 0 deletions

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,22 @@
1010
# ---------------------------------------------------------------
1111
# To update the sha:
1212
# https://github.com/github/gh-base-image/pkgs/container/gh-base-image%2Fgh-base-noble
13-
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260505-222701-gb8f4d82d0@sha256:e5ee5190511450a452713144fb1dcd957535ec7c68705efa48b3d2cbb9871b0d AS base
13+
FROM ghcr.io/github/gh-base-image/gh-base-noble:20260527-203230-gabf2049e0@sha256:e6d4192acbdf566584c77f1306cd72cac3a381be6ff6174c85ee21bb164a8b46 AS base
1414

1515
# Install curl for Node install and determining the early access branch
1616
# Install git for cloning docs-early-access & translations repos
1717
# Install Node.js latest LTS
1818
# https://github.com/nodejs/release#release-schedule
1919
# Ubuntu's apt-get install nodejs is _very_ outdated
2020
# Must run as root
21-
RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
21+
22+
# From https://thehub.github.com/epd/engineering/devops/ci/actions/setting-up-new-github-action/
23+
# We passed pkg-mirror-host as a secret to the build but it is not sensitive data.
24+
RUN --mount=type=secret,id=pkg-mirror-host,target=/etc/pkg_mirror_host.txt \
25+
if [ -f /etc/pkg_mirror_host.txt ]; then cat /etc/pkg_mirror_host.txt >> /etc/apt/mirrorlist.txt; fi
26+
27+
RUN --mount=type=secret,id=apt-auth-conf,target=/etc/apt/auth.conf.d/apt_auth.conf \
28+
apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
2229
&& curl -sL https://deb.nodesource.com/setup_24.x | bash - \
2330
&& apt-get install -y nodejs \
2431
&& node --version
-325 KB
Binary file not shown.
-32.2 KB
Binary file not shown.
-53.8 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)