Skip to content

Commit 224bb5f

Browse files
authored
Merge branch 'main' into patch-1
2 parents 08fb998 + c5656a6 commit 224bb5f

File tree

2,776 files changed

+1131237
-1855886
lines changed

Some content is hidden

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

2,776 files changed

+1131237
-1855886
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,3 @@
33
# [Choice] Node.js version
44
ARG VARIANT="dev-22-bullseye"
55
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
6-
7-
# [Optional] Uncomment this section to install additional OS packages.
8-
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
9-
# && apt-get -y install --no-install-recommends <your-package-list-here>
10-
11-
# [Optional] Uncomment if you want to install an additional version of node using nvm
12-
# ARG EXTRA_NODE_VERSION=10
13-
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
14-
15-
# [Optional] Uncomment if you want to install more global node modules
16-
# RUN su node -c "npm install -g <your-package-list-here>"
17-
18-
# Install the GitHub CLI see:
19-
# https://github.com/microsoft/vscode-dev-containers/blob/3d59f9fe37edb68f78874620f33dac5a62ef2b93/script-library/docs/github.md
20-
COPY library-scripts/github-debian.sh /tmp/library-scripts/
21-
RUN apt-get update && bash /tmp/library-scripts/github-debian.sh

.devcontainer/devcontainer.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
// Install features. Type 'feature' in the VS Code command palette for a full list.
1313
"features": {
14-
"sshd": "latest"
14+
"sshd": "latest",
15+
"ghcr.io/devcontainers/features/github-cli:1": {}
1516
},
1617

1718
"customizations": {
@@ -53,17 +54,21 @@
5354

5455
"portsAttributes": {
5556
"4000": {
56-
"label": "Preview"
57+
"label": "Review"
5758
}
5859
},
5960

60-
// Use 'postCreateCommand' to run commands after the container is created.
61-
"postCreateCommand": "npm ci",
61+
// Lifecycle commands
62+
"onCreateCommand": "npm ci",
63+
"postStartCommand": "nohup bash -c 'npm start &'",
64+
// Set the port to be public
65+
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
6266

6367
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6468
"remoteUser": "node",
6569

6670
"hostRequirements": {
67-
"memory": "8gb"
71+
"memory": "16gb",
72+
"cpus": "4"
6873
}
6974
}

.devcontainer/library-scripts/github-debian.sh

Lines changed: 0 additions & 43 deletions
This file was deleted.

.dockerignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ contributing/
66
docs/
77
node_modules/
88
tests/
9-
# Folder is cloned during the preview + prod workflows, the assets are merged into other locations for use before the build
9+
# Folder is cloned during the Dockerfile build
1010
docs-early-access/
11-
# During the preview deploy untrusted user code may be cloned into this directory
12-
user-code/
11+
README.md

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use the table of contents icon <img alt="Table of contents icon" src="/contribut
1313
To get an overview of the project, read the [README](../README.md) file. Here are some resources to help you get started with open source contributions:
1414

1515
- [Finding ways to contribute to open source on GitHub](https://docs.github.com/en/get-started/exploring-projects-on-github/finding-ways-to-contribute-to-open-source-on-github)
16-
- [Set up Git](https://docs.github.com/en/get-started/getting-started-with-git/set-up-git)
16+
- [Set up Git](https://docs.github.com/en/get-started/git-basics/set-up-git)
1717
- [GitHub flow](https://docs.github.com/en/get-started/using-github/github-flow)
1818
- [Collaborating with pull requests](https://docs.github.com/en/github/collaborating-with-pull-requests)
1919

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@ Thank you for contributing to this project! You must fill out the information be
44

55
### Why:
66

7-
Closes:
7+
<!-- Paste the issue link or number here -->
8+
Closes:
89

910
<!-- If there's an existing issue for your change, please link to it above.
1011
If there's _not_ an existing issue, please open one first to make it more likely that this update will be accepted: https://github.com/github/docs/issues/new/choose. -->
1112

1213
### What's being changed (if available, include any code snippets, screenshots, or gifs):
1314

1415
<!-- Let us know what you are changing. Share anything that could provide the most context.
15-
If you made changes to the `content` directory, a table will populate in a comment below with links to the preview and current production articles. -->
16+
If you made changes to the `content` directory, a table will populate in a comment below with links to the review and current production articles. -->
1617

1718
### Check off the following:
1819

19-
- [ ] A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require a SME review from GitHub staff.
20+
- [ ] A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
2021
- [ ] The changes in this PR meet [the docs fundamentals that are required for all content](http://docs.github.com/en/contributing/writing-for-github-docs/about-githubs-documentation-fundamentals).
21-
- [ ] All CI checks are passing and the changes look good in the preview environment.
22+
- [ ] All CI checks are passing and the changes look good in the review environment.

.github/actions/cache-nextjs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ runs:
88
using: 'composite'
99
steps:
1010
- name: Cache .next/cache
11-
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
11+
uses: actions/cache@v4
1212
with:
1313
path: ${{ github.workspace }}/.next/cache
1414
# Generate a new cache whenever packages or source files change.

.github/actions/clone-translations/action.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ inputs:
1010
runs:
1111
using: 'composite'
1212
steps:
13-
- name: Clone Simplified Chinese
13+
- name: Clone Spanish
1414
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1515
with:
16-
repository: github/docs-internal.zh-cn
16+
repository: github/docs-internal.es-es
1717
token: ${{ inputs.token }}
18-
path: translations/zh-cn
18+
path: translations/es-es
1919

20-
- name: Clone Spanish
20+
- name: Clone Japanese
2121
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
2222
with:
23-
repository: github/docs-internal.es-es
23+
repository: github/docs-internal.ja-jp
2424
token: ${{ inputs.token }}
25-
path: translations/es-es
25+
path: translations/ja-jp
2626

2727
- name: Clone Portuguese
2828
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -31,19 +31,19 @@ runs:
3131
token: ${{ inputs.token }}
3232
path: translations/pt-br
3333

34-
- name: Clone Russian
34+
- name: Clone Simplified Chinese
3535
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3636
with:
37-
repository: github/docs-internal.ru-ru
37+
repository: github/docs-internal.zh-cn
3838
token: ${{ inputs.token }}
39-
path: translations/ru-ru
39+
path: translations/zh-cn
4040

41-
- name: Clone Japanese
41+
- name: Clone Russian
4242
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4343
with:
44-
repository: github/docs-internal.ja-jp
44+
repository: github/docs-internal.ru-ru
4545
token: ${{ inputs.token }}
46-
path: translations/ja-jp
46+
path: translations/ru-ru
4747

4848
- name: Clone French
4949
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -52,16 +52,16 @@ runs:
5252
token: ${{ inputs.token }}
5353
path: translations/fr-fr
5454

55-
- name: Clone German
55+
- name: Clone Korean
5656
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5757
with:
58-
repository: github/docs-internal.de-de
58+
repository: github/docs-internal.ko-kr
5959
token: ${{ inputs.token }}
60-
path: translations/de-de
60+
path: translations/ko-kr
6161

62-
- name: Clone Korean
62+
- name: Clone German
6363
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
6464
with:
65-
repository: github/docs-internal.ko-kr
65+
repository: github/docs-internal.de-de
6666
token: ${{ inputs.token }}
67-
path: translations/ko-kr
67+
path: translations/de-de
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Get changed files
2+
description: Get a list of changed files
3+
4+
inputs:
5+
files:
6+
description: 'Files or directories to check for changes, supports names, directories, trailing slashes, and single trailing wildcard'
7+
required: false
8+
default: '.'
9+
head:
10+
description: 'Head ref to check for changes against'
11+
required: false
12+
output_file:
13+
description: 'Optional file path to write the changes to'
14+
required: false
15+
16+
outputs:
17+
all_changed_files:
18+
description: 'List of all changed files (unfiltered), includes removals'
19+
value: ${{ steps.get_changes.outputs.all_changed_files }}
20+
filtered_changed_files:
21+
description: 'List of changed files matching the `files` filter, does not include removals'
22+
value: ${{ steps.get_changes.outputs.filtered_changed_files }}
23+
filtered_deleted_files:
24+
description: 'List of deleted files matching the `files` filter'
25+
value: ${{ steps.get_changes.outputs.filtered_deleted_files }}
26+
filtered_renamed_files:
27+
description: 'List of renamed files matching the `files` filter'
28+
value: ${{ steps.get_changes.outputs.filtered_renamed_files }}
29+
30+
runs:
31+
using: 'composite'
32+
steps:
33+
- name: Gather changed files
34+
id: get_changes
35+
env:
36+
INPUT_HEAD: ${{ inputs.head || github.event.pull_request.head.ref || github.event.merge_group.head_ref || github.ref_name }}
37+
INPUT_OUTPUT_FILE: ${{ inputs.output_file }}
38+
shell: bash
39+
run: ${{ github.action_path }}/get-changed-files.sh

0 commit comments

Comments
 (0)