Skip to content

Commit b15f084

Browse files
authored
Merge branch 'main' into new-badge-2020
2 parents dfcfd0d + 12bc445 commit b15f084

3,285 files changed

Lines changed: 451533 additions & 180207 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/ISSUE_COMMENT_TEMPLATE/quick-status.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ body:
1414
value: 'Status: YELLOW'
1515
- label: "RED \U0001F534 (BLOCKED)"
1616
value: 'Status: RED'
17+
- label: "BLACK ⚫️ (We shipped it \U0001F389)"
18+
value: 'Status: BLACK'
1719
- type: textarea
1820
attributes:
1921
label: Update Summary

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,21 @@
3434
```
3535
☝️ This will run a workflow **on every push to the PR** that will sync **only** the English index for the new version to Algolia. This will make the GHES content searchable on staging throughout content creation, and will ensure the search updates go live at the same time the content is published. See [`contributing/search.md`](https://github.com/github/docs-internal/blob/main/contributing/search.md) for details.
3636
37-
- [ ] Create an OpenAPI topic branch
38-
39-
This branch is used to avoid propagating the OpenAPI dev mode check CI test failure in all of the branches. All changes that affect the OpenAPI schema should branch off of this topic branch. The tests should all be passing before the OpenAPI topic branch is merged into the megabranch.
40-
41-
For more information about how OpenAPI changes are published to docs.github.com, see [Publishing REST API changes to docs.github.com](https://github.com/github/docs-content/blob/main/docs-content-docs/docs-content-workflows/publishing-documentation/publishing-REST-api-docs.md#publishing-rest-api-changes-to-docsgithubcom).
42-
4337
- [ ] In `github/github`, to create a new GHES release follow these steps:
4438
- [ ] Copy the previous release's root document to a new root document for this release `cp app/api/description/ghes-<LATEST RELEASE NUMBER>.yaml app/api/description/ghes-<NEXT RELEASE NUMBER>.yaml`.
4539
- [ ] Update the `externalDocs.url` property in that file to use the new GHES release number.
4640
- [ ] Copy the previous release's configuration file to a new configuration file for this release `cp app/api/description/config/releases/ghes-<LATEST RELEASE NUMBER>.yaml app/api/description/config/releases/ghes-<NEXT RELEASE NUMBER>.yaml`.
4741
- [ ] Update the `variables.externalDocsUrl`, `variables.ghesVersion`, and `patch.[].value.url` in that file to use the new GHES release number.
4842
- [ ] Update `published` in that file to `false`. **Note:** This is important to ensure that 3.1 OpenAPI changes are not made public until 3.1 is released.
4943
44+
#### Troubleshooting
45+
46+
If the `OpenAPI dev mode check / check-schema-versions` check fails on the release branch, in your local checkout of the mega branch:
47+
48+
- run `git checkout origin/main lib/rest/static/*`
49+
- run `script/rest/update-files.js --decorate-only`
50+
- push the resulting changes
51+
5052
### Before shipping the release branch
5153
5254
- [ ] Add the GHES release notes to `data/release-notes/` and update the versioning frontmatter in `content/admin/release-notes.md` to `enterprise-server: '<=<RELEASE>'`

.github/allowed-actions.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// can be added it this list.
55

66
module.exports = [
7-
"actions/cache@0781355a23dac32fd3bac414512f4b903437991a", //actions/cache@v2.1.3
8-
"actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f", //actions/checkout@v2.3.4
9-
"actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9", //actions/script@v3.0.0
10-
"actions/labeler@5f867a63be70efff62b767459b009290364495eb", //actions/labeler@v2.2.0
11-
"actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e", //actions/setup-node@v2.1.4
12-
"ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262", //ruby/setup-ruby@vv1.64.1
13-
"actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da", //actions/stale@v3.0.16
7+
"actions/cache@0781355a23dac32fd3bac414512f4b903437991a", // v2.1.3
8+
"actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f", // v2.3.4
9+
"actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9", // v3.0.0
10+
"actions/labeler@5f867a63be70efff62b767459b009290364495eb", // v2.2.0
11+
"actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e", // v2.1.4
12+
"ruby/setup-ruby@fdcfbcf14ec9672f6f615cb9589a1bc5dd69d262", // v1.64.1
13+
"actions/stale@9d6f46564a515a9ea11e7762ab3957ee58ca50da", // v3.0.16
1414
"alex-page/github-project-automation-plus@fdb7991b72040d611e1123d2b75ff10eda9372c9",
1515
"andymckay/labeler@22d5392de2b725cea4b284df5824125054049d84",
1616
"archive/github-actions-slack@d368c5a4ad757515a9344918f84c490b05777d94",
@@ -20,14 +20,14 @@ module.exports = [
2020
"cschleiden/actions-linter@0ff16d6ac5103cca6c92e6cbc922b646baaea5be",
2121
"dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911",
2222
"docker://chinthakagodawita/autoupdate-action:v1",
23-
"fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289",
2423
"github/codeql-action/analyze@v1",
2524
"github/codeql-action/init@v1",
2625
"juliangruber/approve-pull-request-action@c530832d4d346c597332e20e03605aa94fa150a8",
27-
"juliangruber/find-pull-request-action@2fc55e82a6d5d36fe1e7f1848f7e64fd02d99de9",
26+
"juliangruber/find-pull-request-action@db875662766249c049b2dcd85293892d61cb0b51", // v1.5.0
2827
"juliangruber/read-file-action@e0a316da496006ffd19142f0fd594a1783f3b512",
2928
"lee-dohm/close-matching-issues@22002609b2555fe18f52b8e2e7c07cbf5529e8a8",
30-
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", //pascalgn/automerge@0.12.0
29+
"lee-dohm/no-response@9bb0a4b5e6a45046f00353d5de7d90fb8bd773bb",
30+
"pascalgn/automerge-action@c9bd1823770819dc8fb8a5db2d11a3a95fbe9b07", // v0.12.0
3131
"peter-evans/create-issue-from-file@a04ce672e3acedb1f8e416b46716ddfd09905326",
3232
"peter-evans/create-or-update-comment@5221bf4aa615e5c6e95bb142f9673a9c791be2cd",
3333
"peter-evans/create-pull-request@8c603dbb04b917a9fc2dd991dc54fef54b640b43",

.github/workflows/browser-test.yml

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,26 @@ on:
1212
pull_request:
1313

1414
jobs:
15-
see_if_should_skip:
16-
continue-on-error: true
17-
runs-on: ubuntu-latest
18-
# Map a step output to a job output
19-
outputs:
20-
should_skip: ${{ steps.skip_check.outputs.should_skip }}
21-
steps:
22-
- id: skip_check
23-
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
24-
with:
25-
cancel_others: 'false'
26-
github_token: ${{ github.token }}
27-
paths: '[".github/workflows/browser-test.yml","assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2815
build:
29-
needs: see_if_should_skip
3016
runs-on: ubuntu-latest
3117
steps:
3218
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
3319
# Even if if doesn't do anything
34-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
35-
name: Checkout
20+
- name: Checkout
3621
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3722

38-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
39-
name: Setup Node
23+
- name: Setup Node
4024
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
4125
with:
4226
node-version: 14.x
4327

44-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
45-
name: Install
28+
- name: Install
4629
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
4730
timeout-minutes: 5
4831
with:
4932
args: npm ci
5033

51-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
52-
name: Test
34+
- name: Test
5335
timeout-minutes: 10
5436
uses: rachmari/puppeteer-container@6d56d6e132a3df76cf60bc290a4282f7fbaed05e
5537
with:

.github/workflows/close-external-repo-sync-prs.yml

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

.github/workflows/confirm-internal-staff-work-in-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
check-team-membership:
1818
runs-on: ubuntu-latest
1919
continue-on-error: true
20-
if: github.repository == 'github/docs'
20+
if: github.repository == 'github/docs' && github.actor != 'docs-bot'
2121
steps:
2222
- id: membership_check
2323
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9

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

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,26 @@ on:
1212
pull_request:
1313

1414
jobs:
15-
see_if_should_skip:
16-
continue-on-error: true
17-
runs-on: ubuntu-latest
18-
# Map a step output to a job output
19-
outputs:
20-
should_skip: ${{ steps.skip_check.outputs.should_skip }}
21-
steps:
22-
- id: skip_check
23-
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
24-
with:
25-
cancel_others: 'false'
26-
github_token: ${{ github.token }}
27-
paths: '[".github/workflows/link-check-dotcom.yml", "assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2815
build:
29-
needs: see_if_should_skip
3016
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
3117
steps:
3218
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
3319
# Even if if doesn't do anything
34-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
35-
name: Checkout
20+
- name: Checkout
3621
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3722

38-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
39-
name: Setup node
23+
- name: Setup node
4024
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
4125
with:
4226
node-version: 14.x
4327

44-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
45-
name: Install
28+
- name: Install
4629
run: npm ci
4730

48-
## TODO
49-
# - if: ${{ github.repository == 'github/docs-internal' && needs.see_if_should_skip.outputs.should_skip != 'true' }}
50-
# name: Clone early access
51-
# run: npm run heroku-postbuild
52-
# env:
53-
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
54-
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
55-
56-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
57-
name: Build
31+
- name: Build
5832
run: npm run build
5933

60-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
61-
name: 'Link check: Dotcom'
34+
- name: 'Link check: Dotcom'
6235
env:
6336
DOCS_VERSION: 'dotcom'
6437
run: npm run link-check

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

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,26 @@ on:
1212
pull_request:
1313

1414
jobs:
15-
see_if_should_skip:
16-
continue-on-error: true
17-
runs-on: ubuntu-latest
18-
# Map a step output to a job output
19-
outputs:
20-
should_skip: ${{ steps.skip_check.outputs.should_skip }}
21-
steps:
22-
- id: skip_check
23-
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
24-
with:
25-
cancel_others: 'false'
26-
github_token: ${{ github.token }}
27-
paths: '[".github/workflows/link-check-ghae.yml", "assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2815
build:
29-
needs: see_if_should_skip
3016
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
3117
steps:
3218
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
3319
# Even if if doesn't do anything
34-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
35-
name: Checkout
20+
- name: Checkout
3621
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3722

38-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
39-
name: Setup node
23+
- name: Setup node
4024
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
4125
with:
4226
node-version: 14.x
4327

44-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
45-
name: Install
28+
- name: Install
4629
run: npm ci
4730

48-
## TODO
49-
# - if: ${{ github.repository == 'github/docs-internal' && needs.see_if_should_skip.outputs.should_skip != 'true' }}
50-
# name: Clone early access
51-
# run: npm run heroku-postbuild
52-
# env:
53-
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
54-
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
55-
56-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
57-
name: Build
31+
- name: Build
5832
run: npm run build
5933

60-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
61-
name: 'Link check: GitHub AE'
34+
- name: 'Link check: GitHub AE'
6235
env:
6336
DOCS_VERSION: 'github-ae'
6437
run: npm run link-check

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

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,26 @@ on:
1212
pull_request:
1313

1414
jobs:
15-
see_if_should_skip:
16-
continue-on-error: true
17-
runs-on: ubuntu-latest
18-
# Map a step output to a job output
19-
outputs:
20-
should_skip: ${{ steps.skip_check.outputs.should_skip }}
21-
steps:
22-
- id: skip_check
23-
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
24-
with:
25-
cancel_others: 'false'
26-
github_token: ${{ github.token }}
27-
paths: '[".github/workflows/link-check-ghes.yml", "assets/**", "content/**", "data/**", "includes/**", "javascripts/**", "jest-puppeteer.config.js", "jest.config.js", "layouts/**", "lib/**", "middleware/**", "package-lock.json", "package.json", "server.js", "translations/**", "webpack.config.js"]'
2815
build:
29-
needs: see_if_should_skip
3016
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
3117
steps:
3218
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
3319
# Even if if doesn't do anything
34-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
35-
name: Checkout
20+
- name: Checkout
3621
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
3722

38-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
39-
name: Setup node
23+
- name: Setup node
4024
uses: actions/setup-node@c46424eee26de4078d34105d3de3cc4992202b1e
4125
with:
4226
node-version: 14.x
4327

44-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
45-
name: Install
28+
- name: Install
4629
run: npm ci
4730

48-
## TODO
49-
# - if: ${{ github.repository == 'github/docs-internal' && needs.see_if_should_skip.outputs.should_skip != 'true' }}
50-
# name: Clone early access
51-
# run: npm run heroku-postbuild
52-
# env:
53-
# DOCUBOT_REPO_PAT: ${{ secrets.DOCUBOT_REPO_PAT }}
54-
# GIT_BRANCH: ${{ github.head_ref || github.ref }}
55-
56-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
57-
name: Build
31+
- name: Build
5832
run: npm run build
5933

60-
- if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
61-
name: 'Link check: Enterprise Server'
34+
- name: 'Link check: Enterprise Server'
6235
env:
6336
DOCS_VERSION: 'enterprise-server'
6437
run: npm run link-check

0 commit comments

Comments
 (0)