Skip to content

Commit cf4ff59

Browse files
authored
Merge branch 'main' into fix/#14959
2 parents bc54207 + ba2b7f0 commit cf4ff59

File tree

4,011 files changed

+1138791
-540685
lines changed

Some content is hidden

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

4,011 files changed

+1138791
-540685
lines changed

.github/actions-scripts/enterprise-server-issue-templates/release-issue.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ This file should be automatically updated, but you can also run `script/update-e
116116
Use admin permissions to ship the release branch with this failure. Make sure that the merge's commit title does not include anything like `[DO NOT MERGE]`, and remove all the branch's commit details from the merge's commit message except for the co-author list.
117117
- [ ] Do any required smoke tests listed in the opening post in the megabranch PR.
118118
- [ ] Once smoke tests have passed, you can [unfreeze the repos](https://github.com/github/docs-content/blob/main/docs-content-docs/docs-content-workflows/freezing.md) and post an announcement in Slack.
119-
- [ ] After unfreezing, push the search index LFS objects for the public `github/docs` repo. The LFS objects were already being pushed for the internal repo after the `sync-english-index-for-<PLAN@RELEASE>` was added to the megabranch. To push the LFS objects, run the [search sync workflow](https://github.com/github/docs-internal/actions/workflows/sync-search-indices.yml) with the following inputs:
119+
- [ ] After unfreezing, push the search index LFS objects for the public `github/docs` repo. The LFS objects were already being pushed for the internal repo after the `sync-english-index-for-<PLAN@RELEASE>` was added to the megabranch. To push the LFS objects, run the [search sync workflow](https://github.com/github/docs-internal/actions/workflows/sync-search-indices.yml). Once you're there, click on `Run workflow` button. A modal will pop up where you can set the following inputs:
120+
Branch: The new version megabranch you're working on
120121
version: `enterprise-server@<RELEASE>`
121122
language: `en`
122123
- [ ] After unfreezing, if there were significant or highlighted GraphQL changes in the release, consider manually running the [GraphQL update workflow](https://github.com/github/docs-internal/actions/workflows/update-graphql-files.yml) to update our GraphQL schemas. By default this workflow only runs once every 24 hours.

.github/actions-scripts/openapi-schema-branch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const changedFiles = execSync('git diff --name-only HEAD').toString()
3636
if (changedFiles !== '') {
3737
console.log(`These files were changed:\n${changedFiles}`)
3838
console.log(
39-
`🚧⚠️ Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. \n\n If this test is failing after updates to the script/rest directory, run script/rest/update-files.js --decorate-only to re-generate the decorated files from the existing dereferenced files and check those in. \n\n If this test is failing after an update to a package, check the changes the new package makes to the decorated files by running script/rest/update-files.js --decorate-only. If the changes are small style changes that don't impact the overall experience, check the updated decorated file in. Otherwise, more work may be needed to be compatible with the updated package. \n\n For more information, see 'script/rest/README.md'. 🛑`
39+
`🚧⚠️ Your decorated and dereferenced schema files don't match. Ensure you're using decorated and dereferenced schemas from the automatically created pull requests by the 'github-openapi-bot' user. \n\n If this test is failing after updates to the script/rest directory, run script/rest/update-files.js --decorate-only to re-generate the decorated files from the existing dereferenced files and check those in. \n\n If this test is failing after an update to a package, check the changes the new package makes to the decorated files by running script/rest/update-files.js --decorate-only.\n\nIf you updated script/rest/utils/rest-api-overrides.json, you'll need to run script/rest/update-files.js --decorate-only to regenerate the decorated file and redirects file (check in the changed lib/rest/static/decorated files).\n\nIf the changes are small style changes that don't impact the overall experience, check the updated decorated file in. Otherwise, more work may be needed to be compatible with the updated package. \n\n For more information, see 'script/rest/README.md'. 🛑`
4040
)
4141
process.exit(1)
4242
}

.github/actions-scripts/prune-for-preview-env.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ mkdir translations
2020
# front-matter will be at play.
2121
# These static redirects json files are notoriously large
2222
echo '[]' > lib/redirects/static/archived-frontmatter-fallbacks.json
23-
echo '{}' > lib/redirects/static/developer.json
2423
echo '{}' > lib/redirects/static/archived-redirects-from-213-to-217.json

.github/dependabot.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ updates:
33
- package-ecosystem: npm
44
directory: '/'
55
schedule:
6-
interval: monthly
6+
interval: weekly
7+
day: tuesday
78
open-pull-requests-limit: 20 # default is 5
89
ignore:
910
- dependency-name: '*'
@@ -13,7 +14,8 @@ updates:
1314
- package-ecosystem: 'github-actions'
1415
directory: '/'
1516
schedule:
16-
interval: monthly
17+
interval: weekly
18+
day: wednesday
1719
ignore:
1820
- dependency-name: '*'
1921
update-types:
@@ -22,7 +24,8 @@ updates:
2224
- package-ecosystem: 'docker'
2325
directory: '/'
2426
schedule:
25-
interval: monthly
27+
interval: weekly
28+
day: thursday
2629
ignore:
2730
- dependency-name: '*'
2831
update-types:

.github/workflows/autoupdate-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Node
4646
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4747
with:
48-
node-version: 16.13.x
48+
node-version: 16.14.x
4949
cache: npm
5050

5151
- name: Install dependencies

.github/workflows/azure-preview-env-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ permissions:
3434

3535
# This allows one deploy workflow to interrupt another
3636
concurrency:
37-
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label }}'
37+
group: 'preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event.inputs.PR_NUMBER }}'
3838
cancel-in-progress: true
3939

4040
jobs:

.github/workflows/azure-preview-env-destroy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
permissions:
2020
contents: read
2121

22+
# This allows one deploy workflow to interrupt another
23+
concurrency:
24+
group: 'preview-env @ ${{ github.head_ref || github.run_id }} for ${{ github.event.number || github.event.inputs.PR_NUMBER }}'
25+
cancel-in-progress: true
26+
2227
jobs:
2328
destory-azure-preview-env:
2429
name: Destroy

.github/workflows/browser-test.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Node
4343
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4444
with:
45-
node-version: 16.13.x
45+
node-version: 16.14.x
4646
cache: npm
4747

4848
- name: Install dependencies
@@ -59,11 +59,5 @@ jobs:
5959
path: .next/cache
6060
key: ${{ runner.os }}-nextjs-${{ hashFiles('package*.json') }}
6161

62-
- name: Cache lib/redirects/.redirects-cache_en_ja.json
63-
uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed
64-
with:
65-
path: lib/redirects/.redirects-cache_en_ja.json
66-
key: ${{ runner.os }}-redirects-cache-${{ hashFiles('.github/workflows/browser-test.yml') }}
67-
6862
- name: Run browser-test
6963
run: npm run browser-test

.github/workflows/check-all-english-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Node
3131
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
3232
with:
33-
node-version: 16.13.x
33+
node-version: 16.14.x
3434
cache: npm
3535
- name: npm ci
3636
run: npm ci

.github/workflows/check-broken-links-github-github.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup Node
4545
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4646
with:
47-
node-version: 16.13.x
47+
node-version: 16.14.x
4848
cache: npm
4949

5050
- name: Install Node.js dependencies

.github/workflows/code-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup node
4040
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4141
with:
42-
node-version: 16.13.x
42+
node-version: 16.14.x
4343
cache: npm
4444

4545
- name: Install dependencies

.github/workflows/content-changes-table-comment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Setup Node
6060
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
6161
with:
62-
node-version: 16.13.x
62+
node-version: 16.14.x
6363
cache: npm
6464

6565
- name: Install temporary dependencies

.github/workflows/create-translation-batch-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
- name: 'Setup node'
119119
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
120120
with:
121-
node-version: '16'
121+
node-version: 16.14.x
122122

123123
- run: npm ci
124124

.github/workflows/crowdin-cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup Node
3232
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
3333
with:
34-
node-version: 16.13.x
34+
node-version: 16.14.x
3535
cache: npm
3636

3737
- name: Install dependencies

.github/workflows/docs-review-collect.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
2727
with:
28-
node-version: 16.13.x
28+
node-version: 16.14.x
2929
cache: npm
3030

3131
- name: Install dependencies

.github/workflows/enterprise-dates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup Node
4242
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4343
with:
44-
node-version: 16.13.x
44+
node-version: 16.14.x
4545
cache: npm
4646

4747
- name: Install Node.js dependencies

.github/workflows/enterprise-release-sync-search-index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Update English index for new GHES release
4141
# Skip this check if the event originated from Docubot, to prevent
4242
# infinite runs when Docubot checks in the search indexes in this workflow
43-
if: github.repository == 'github/docs-internal' && github.event.sender.login != 'Docubot'
43+
if: github.repository == 'github/docs-internal' && github.event.sender.login != 'Docubot' && github.actor != 'dependabot[bot]'
4444
runs-on: ubuntu-latest
4545
steps:
4646
- name: checkout
@@ -52,7 +52,7 @@ jobs:
5252
- name: Setup Node
5353
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
5454
with:
55-
node-version: 16.13.x
55+
node-version: 16.14.x
5656
cache: npm
5757

5858
- name: Install dependencies

.github/workflows/first-responder-docs-content.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ permissions:
1919
jobs:
2020
first-responder-triage-pr:
2121
name: Triage PR to FR project board
22-
if: github.repository == 'github/docs-internal' && github.event.pull_request.draft == false && github.event.action != 'unlabeled' && github.event.action != 'closed'
22+
if: github.repository == 'github/docs-internal' && github.event.pull_request.draft == false && github.event.action != 'unlabeled' && github.event.action != 'closed' && github.actor != 'dependabot[bot]'
2323
runs-on: ubuntu-latest
2424

2525
steps:
@@ -66,7 +66,7 @@ jobs:
6666

6767
first-responder-remove-pr:
6868
name: Remove PR from FR project board
69-
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed')
69+
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed') && github.actor != 'dependabot[bot]'
7070
runs-on: ubuntu-latest
7171

7272
steps:

.github/workflows/hubber-contribution-help.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
gh pr comment $PR --body "Thanks so much for opening this PR and contributing to GitHub Docs!
4343
44-
- When you're ready for the Docs team to review this PR, request a review by *docs-content* and your PR will be added to the [Docs Content review board](https://github.com/orgs/github/memexes/901?layout=table&groupedBy%5BcolumnId%5D=11024). **Please factor in at least 72 hours for a review, even longer if this is a substantial change.**
44+
- When you're ready for the Docs team to review this PR, add the *ready-for-doc-review* label to your PR to the [Docs Content review board](https://github.com/orgs/github/memexes/901?layout=table&groupedBy%5BcolumnId%5D=11024). **Please factor in at least 72 hours for a review, even longer if this is a substantial change.**
4545
- If this is a major update to the docs, you might want to go back and open an [issue](https://github.com/github/docs-content/issues/new/choose) to ensure we've covered all areas of the docs in these updates. Not doing so may result in delays or inaccurate documentation."
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/link-check-all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup node
3232
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
3333
with:
34-
node-version: 16.13.x
34+
node-version: 16.14.x
3535
cache: npm
3636

3737
- name: Install

.github/workflows/open-enterprise-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node
2525
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
2626
with:
27-
node-version: 16.13.x
27+
node-version: 16.14.x
2828
cache: npm
2929

3030
- name: Install dependencies

.github/workflows/openapi-decorate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Setup node
4242
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4343
with:
44-
node-version: 16.13.x
44+
node-version: 16.14.x
4545
cache: npm
4646

4747
- name: Install dependencies

.github/workflows/openapi-schema-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Setup node
4545
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
4646
with:
47-
node-version: 16.13.x
47+
node-version: 16.14.x
4848
cache: npm
4949

5050
- name: Install dependencies

.github/workflows/optimize-images.yml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,47 @@ name: Optimize images
66

77
on:
88
workflow_dispatch:
9-
schedule:
10-
- cron: '45 17 * * 2' # Run Tuesdays at 17:45 UTC / 9:45 PST
9+
pull_request:
10+
paths:
11+
- '**/*.png'
1112

1213
permissions:
1314
contents: write
1415
pull-requests: write
1516

1617
jobs:
17-
optimize-images:
18-
if: github.repository == 'github/docs-internal'
18+
optimize-images-on-pr:
19+
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
1920
runs-on: ubuntu-latest
2021
steps:
21-
- name: Check out repo
22+
- name: Check out repo on head ref
2223
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
24+
with:
25+
ref: ${{ github.head_ref }}
26+
27+
- name: Check out base ref
28+
run: git fetch --no-tags --depth=1 origin $GITHUB_BASE_REF
2329

2430
- name: Install the Optipng package
2531
run: sudo apt-get update && sudo apt-get -y install optipng
2632

27-
- name: Run the Optipng package
28-
run: find . -name '*.png' -print0 | xargs -0 optipng -nx
33+
- name: Run optipng on new or changed images
34+
run: |
35+
set -e # exit when any command fails
36+
37+
echo "Ensure we can view $GITHUB_BASE_REF"
38+
git checkout $GITHUB_BASE_REF
39+
40+
echo "Ensure we can view $GITHUB_HEAD_REF"
41+
git checkout $GITHUB_HEAD_REF
2942
30-
- name: Make a branch, commit, push, and pull request
43+
echo "List the files that changed"
44+
git diff --name-only --diff-filter=d $GITHUB_BASE_REF $GITHUB_HEAD_REF
45+
46+
echo "Run optipng on pngs in from the diff"
47+
git diff --name-only -z --diff-filter=d $GITHUB_BASE_REF $GITHUB_HEAD_REF -- '*.png' | xargs -0 optipng -nx
48+
49+
- name: Make a commit and a push
3150
run: |
3251
echo "If there's no changes, exit"
3352
if [[ ! `git status --porcelain` ]]
@@ -36,20 +55,13 @@ jobs:
3655
exit 0
3756
fi
3857
39-
echo "Make a new branch"
40-
BRANCH="optimize-images-$(date +'%Y%m%d%H%M%S')"
41-
git checkout -b $BRANCH
42-
4358
echo "Make a commit"
4459
git config user.name github-actions
4560
git config user.email github-actions@github.com
4661
git add "*.png"
4762
git commit --message="Optimize images"
4863
4964
echo "Push up changes"
50-
git push --set-upstream origin $BRANCH
51-
52-
echo "Open a pull request"
53-
gh pr create --title "Optimize images" --body "Optimize images" --reviewer "@github/docs-engineering"
65+
git push
5466
env:
5567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/orphaned-assets-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup node
2121
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
2222
with:
23-
node-version: 16.13.x
23+
node-version: 16.14.x
2424
cache: npm
2525

2626
- name: Install

.github/workflows/os-ready-for-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: Setup Node
5050
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
5151
with:
52-
node-version: 16.x
52+
node-version: 16.14.x
5353
cache: npm
5454

5555
- name: Install dependencies

.github/workflows/pa11y.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
2525
with:
26-
node-version: 16.13.x
26+
node-version: 16.14.x
2727
cache: npm
2828

2929
- name: Install dependencies

.github/workflows/package-lock-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup Node
3030
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
3131
with:
32-
node-version: 16.x
32+
node-version: 16.14.x
3333

3434
- name: Run check
3535
run: |

.github/workflows/prod-build-deploy-azure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 15
2828
environment:
29-
name: production-azure
29+
name: production
3030
url: 'https://docs.github.com'
3131
env:
3232
DOCKER_IMAGE: ${{ secrets.PROD_REGISTRY_SERVER }}/${{ github.repository }}:${{ github.sha }}
@@ -62,7 +62,7 @@ jobs:
6262
- name: Setup node
6363
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
6464
with:
65-
node-version: 16.13.x
65+
node-version: 16.14.x
6666
cache: npm
6767

6868
- name: Clone docs-early-access

.github/workflows/ready-for-doc-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup Node
2626
uses: actions/setup-node@1f8c6b94b26d0feae1e387ca63ccbdc44d27b561
2727
with:
28-
node-version: 16.13.x
28+
node-version: 16.14.x
2929
cache: npm
3030

3131
- name: Install dependencies

0 commit comments

Comments
 (0)