Skip to content

Commit cad6f29

Browse files
authored
Merge branch 'main' into F4NT0/api-libraries-update
2 parents 329679a + b9c0172 commit cad6f29

File tree

8,250 files changed

+126042
-146918
lines changed

Some content is hidden

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

8,250 files changed

+126042
-146918
lines changed

.github/ISSUE_TEMPLATE/improve-existing-docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN I
1414
For questions, ask in Discussions: https://github.com/github/docs/discussions
1515
1616
Before you file an issue read the:
17-
- Code of Conduct: https://github.com/github/docs/blob/onboarding/CODE_OF_CONDUCT.md
18-
- Contributing guide: https://github.com/github/docs/blob/onboarding/CONTRIBUTING.md
17+
- Code of Conduct: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
18+
- Contributing guide: https://github.com/github/docs/blob/main/CONTRIBUTING.md
1919
2020
Check to make sure someone hasn't already opened a similar issue: https://github.com/github/docs/issues
2121
-->

.github/ISSUE_TEMPLATE/improve-the-site.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ HUBBERS BEWARE! THE GITHUB/DOCS REPO IS PUBLIC TO THE ENTIRE INTERNET. OPEN AN I
1414
For questions, ask in Discussions: https://github.com/github/docs/discussions
1515
1616
Before you file an issue read the:
17-
- Code of Conduct: https://github.com/github/docs/blob/onboarding/CODE_OF_CONDUCT.md
18-
- Contributing guide: https://github.com/github/docs/blob/onboarding/CONTRIBUTING.md
17+
- Code of Conduct: https://github.com/github/docs/blob/main/CODE_OF_CONDUCT.md
18+
- Contributing guide: https://github.com/github/docs/blob/main/CONTRIBUTING.md
1919
2020
Check to make sure someone hasn't already opened a similar issue: https://github.com/github/docs/issues
2121
-->

.github/allowed-actions.js

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

66
module.exports = [
7-
'actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe',
8-
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16',
9-
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675',
10-
'actions/github-script@5d03ada4b0a753e9460b312e61cc4f8fdeacf163',
11-
'actions/github-script@6e5ee1dc1cb3740e5e5e76ad668e3f526edbfe45',
12-
'actions/github-script@44b873bc975058192f5279ebe7579496381f575d',
13-
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9',
14-
'actions/labeler@5f867a63be70efff62b767459b009290364495eb',
15-
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d',
16-
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526',
17-
'actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8',
7+
'actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16', //actions/cache@v2.1.2
8+
'actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675', //actions/checkout@v2.3.3
9+
'actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9', //actions/script@v3.0.0
10+
'actions/labeler@5f867a63be70efff62b767459b009290364495eb', //actions/labeler@v2.2.0
11+
'actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d', //actions/setup-node@v1.4.4
12+
'actions/setup-ruby@5f29a1cd8dfebf420691c4c9a0e832e2fae5a526', //actions/setup-ruby@v1.1.2
13+
'actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4', //actions/stale@v3.0.13
1814
'crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688',
1915
'dawidd6/action-delete-branch@47743101a121ad657031e6704086271ca81b1911',
2016
'docker://chinthakagodawita/autoupdate-action:v1',
@@ -31,7 +27,7 @@ module.exports = [
3127
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9',
3228
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e',
3329
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88',
34-
'repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7',
30+
'repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d',
3531
'rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815',
3632
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0'
3733
]

.github/workflows/60-days-stale-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@44f9eae0adddf72dbf3eedfacc999f70afcec1a8
10+
- uses: actions/stale@af4072615903a8b031f986d25b1ae3bf45ec44d4
1111
with:
12-
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
stale-issue-message: 'This issue is stale because it has been open 60 days with no activity.'
1414
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity.'
1515
days-before-stale: 60

.github/workflows/codeql.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ on:
88

99
jobs:
1010
build:
11-
12-
strategy:
13-
fail-fast: false
14-
1511
runs-on: ubuntu-latest
1612

1713
steps:
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: (Dry run) Algolia
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
updateIndices:
8+
name: (Dry run) Update indices
9+
if: github.repository == 'github/docs-internal'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
14+
- uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
15+
with:
16+
node-version: 14.x
17+
- name: cache node modules
18+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
19+
with:
20+
path: ~/.npm
21+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22+
restore-keys: |
23+
${{ runner.os }}-node-
24+
- name: npm ci
25+
run: npm ci
26+
- name: (Dry run) sync indices
27+
env:
28+
ALGOLIA_APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
29+
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: npm run sync-search-dry-run

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Check if the event originated from a team member
14-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
14+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1515
id: set-result
1616
with:
1717
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
@@ -53,12 +53,12 @@ jobs:
5353

5454
first-responder-remove-pr:
5555
name: Remove PR from FR project board
56-
if: (github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed'
56+
if: github.repository == 'github/docs-internal' && ((github.event.label.name == 'docs-content-fr' && github.event.action == 'unlabeled') || github.event.action == 'closed')
5757
runs-on: ubuntu-latest
5858

5959
steps:
6060
- name: Remove card from project
61-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
61+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
6262
with:
6363
github-token: ${{secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES}}
6464
result-encoding: string

.github/workflows/js-lint.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Lint JS
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches-ignore:
10+
- translations
11+
12+
jobs:
13+
see_if_should_skip:
14+
runs-on: ubuntu-latest
15+
16+
outputs:
17+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
18+
steps:
19+
- id: skip_check
20+
uses: fkirc/skip-duplicate-actions@36feb0d8d062137530c2e00bd278d138fe191289
21+
with:
22+
cancel_others: 'false'
23+
github_token: ${{ github.token }}
24+
paths: '["**/*.js", "package*.json", ".github/workflows/js-lint.yml"]'
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
needs: see_if_should_skip
29+
if: ${{ needs.see_if_should_skip.outputs.should_skip != 'true' }}
30+
steps:
31+
- name: Check out repo
32+
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
33+
34+
- name: Setup node
35+
uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d
36+
with:
37+
node-version: 14.x
38+
39+
- name: Get npm cache directory
40+
id: npm-cache
41+
run: |
42+
echo "::set-output name=dir::$(npm config get cache)"
43+
44+
- name: Cache node modules
45+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
46+
with:
47+
path: ${{ steps.npm-cache.outputs.dir }}
48+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-
51+
52+
- name: Install dependencies
53+
run: npm ci
54+
55+
- name: Run linter
56+
run: npx standard
57+
58+
- name: Check dependencies
59+
run: npm run check-deps

.github/workflows/merged-notification.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
name: Merged notification
12
on:
23
pull_request_target:
34
types: ['closed']
45

56
jobs:
67
comment:
7-
if: github.event.repository.private == false && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
8+
if: github.repository == 'github/docs' && github.event.pull_request.merged && github.event.pull_request.base.ref == github.event.repository.default_branch
89
runs-on: ubuntu-latest
910
steps:
1011
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Repo Freeze Reminders
2+
3+
on:
4+
schedule:
5+
- cron: "00 11 * * *" # once per day around 11:00am UTC
6+
7+
env:
8+
FREEZE: ${{ secrets.FREEZE }}
9+
10+
jobs:
11+
check-freezer:
12+
name: Remind about deployment freezes
13+
runs-on: ubuntu-latest
14+
if: github.repository == 'github/docs-internal'
15+
steps:
16+
17+
- name: Send Slack notification if repo is frozen
18+
if: ${{ env.FREEZE == 'true' }}
19+
uses: rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
20+
env:
21+
SLACK_WEBHOOK: ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
22+
SLACK_USERNAME: docs-repo-sync
23+
SLACK_ICON_EMOJI: ':freezing_face:'
24+
SLACK_COLOR: '#51A0D5' # Carolina Blue
25+
SLACK_MESSAGE: All repo-sync runs will fail for ${{ github.repository }} because the repo is currently frozen!

.github/workflows/repo-sync.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ env:
1414
FREEZE: ${{ secrets.FREEZE }}
1515

1616
jobs:
17-
repo-sync:
18-
name: Repo Sync
17+
check-freezer:
18+
name: Check for deployment freezes
1919
runs-on: ubuntu-latest
20-
continue-on-error: true
2120
steps:
2221

2322
- name: Exit if repo is frozen
@@ -26,6 +25,12 @@ jobs:
2625
echo 'The repo is currently frozen! Exiting this workflow.'
2726
exit 1 # prevents further steps from running
2827
28+
repo-sync:
29+
name: Repo Sync
30+
needs: check-freezer
31+
runs-on: ubuntu-latest
32+
steps:
33+
2934
- name: Check out repo
3035
uses: actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
3136

@@ -40,7 +45,7 @@ jobs:
4045
github_token: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4146

4247
- name: Create pull request
43-
uses: repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7
48+
uses: repo-sync/pull-request@33777245b1aace1a58c87a29c90321aa7a74bd7d
4449
env:
4550
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4651
with:
@@ -57,6 +62,7 @@ jobs:
5762
with:
5863
github-token: ${{ secrets.GITHUB_TOKEN }}
5964
branch: repo-sync
65+
base: main
6066

6167
- name: Approve pull request
6268
if: ${{ steps.find-pull-request.outputs.number }}
@@ -67,7 +73,10 @@ jobs:
6773

6874
- name: Send Slack notification if workflow fails
6975
uses: rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
70-
if: failure()
76+
if: ${{ failure() }}
7177
env:
7278
SLACK_WEBHOOK: ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
79+
SLACK_USERNAME: docs-repo-sync
80+
SLACK_ICON_EMOJI: ':ohno:'
81+
SLACK_COLOR: '#B90E0A' # Crimson
7382
SLACK_MESSAGE: The last repo-sync run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions?query=workflow%3A%22Repo+Sync%22

.github/workflows/send-eng-issues-to-backlog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- name: Add issues with engineering label to project board
1414
if: contains(github.event.issue.labels.*.name, 'engineering') || contains(github.event.issue.labels.*.name, 'design') || contains(github.event.issue.labels.*.name, 'Design')
15-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
15+
uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1616
with:
1717
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}
1818
script: |

.github/workflows/start-new-engineering-pr-workflow.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Start new engineering PR workflow
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, reopened]
66

77
jobs:
@@ -12,8 +12,7 @@ jobs:
1212
DRAFT_COLUMN_ID: 10095775
1313
REGULAR_COLUMN_ID: 10095779
1414
steps:
15-
- name:
16-
uses: actions/github-script@44b873bc975058192f5279ebe7579496381f575d
15+
- uses: actions/github-script@626af12fe9a53dc2972b48385e7fe7dec79145c9
1716
continue-on-error: true
1817
with:
1918
github-token: ${{ secrets.DOCUBOT_FR_PROJECT_BOARD_WORKFLOWS_REPO_ORG_READ_SCOPES }}

.github/workflows/sync-algolia-search-indices.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Algolia
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
@@ -17,7 +18,7 @@ jobs:
1718
with:
1819
node-version: 14.x
1920
- name: cache node modules
20-
uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe
21+
uses: actions/cache@d1255ad9362389eac595a9ae406b8e8cb3331f16
2122
with:
2223
path: ~/.npm
2324
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test-translations.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@ jobs:
7777

7878
- name: Run tests
7979
run: npx jest tests/${{ matrix.test-group }}/
80+
env:
81+
NODE_OPTIONS: "--max_old_space_size=4096"

.github/workflows/test-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ jobs:
4747

4848
- name: Run tests
4949
run: npx jest tests/${{ matrix.test-group }}/
50+
env:
51+
NODE_OPTIONS: "--max_old_space_size=4096"

0 commit comments

Comments
 (0)