Skip to content

Commit 55e314b

Browse files
authored
Merge branch 'main' into main
2 parents ba6c96b + 1abe676 commit 55e314b

1,169 files changed

Lines changed: 2536057 additions & 1795873 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/actions/clone-translations/action.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,56 +11,56 @@ runs:
1111
using: 'composite'
1212
steps:
1313
- name: Clone Spanish
14-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515
with:
1616
repository: github/docs-internal.es-es
1717
token: ${{ inputs.token }}
1818
path: translations/es-es
1919

2020
- name: Clone Japanese
21-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
21+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2222
with:
2323
repository: github/docs-internal.ja-jp
2424
token: ${{ inputs.token }}
2525
path: translations/ja-jp
2626

2727
- name: Clone Portuguese
28-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
28+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929
with:
3030
repository: github/docs-internal.pt-br
3131
token: ${{ inputs.token }}
3232
path: translations/pt-br
3333

3434
- name: Clone Simplified Chinese
35-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
35+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3636
with:
3737
repository: github/docs-internal.zh-cn
3838
token: ${{ inputs.token }}
3939
path: translations/zh-cn
4040

4141
- name: Clone Russian
42-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4343
with:
4444
repository: github/docs-internal.ru-ru
4545
token: ${{ inputs.token }}
4646
path: translations/ru-ru
4747

4848
- name: Clone French
49-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
49+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5050
with:
5151
repository: github/docs-internal.fr-fr
5252
token: ${{ inputs.token }}
5353
path: translations/fr-fr
5454

5555
- name: Clone Korean
56-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
56+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5757
with:
5858
repository: github/docs-internal.ko-kr
5959
token: ${{ inputs.token }}
6060
path: translations/ko-kr
6161

6262
- name: Clone German
63-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
63+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6464
with:
6565
repository: github/docs-internal.de-de
6666
token: ${{ inputs.token }}

.github/actions/get-docs-early-access/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
run: npm run what-docs-early-access-branch
2020

2121
- name: Clone
22-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2323
with:
2424
repository: github/docs-early-access
2525
token: ${{ inputs.token }}

.github/prompts/code-review.prompt.md

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

.github/workflows/changelog-agent.yml

Lines changed: 14 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -321,12 +321,6 @@ jobs:
321321
322322
core.setOutput('examples', examples.join('\n'));
323323
324-
- name: Set up Node.js
325-
if: steps.check_parent.outputs.has_parent == 'true' && steps.check_existing.outputs.exists == 'false'
326-
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
327-
with:
328-
node-version-file: 'package.json'
329-
330324
- name: Prepare prompts for LLM
331325
if: steps.check_parent.outputs.has_parent == 'true' && steps.check_existing.outputs.exists == 'false'
332326
id: prepare_prompts
@@ -724,39 +718,17 @@ jobs:
724718
body: `<!-- changelog-agent-handled -->\n🤖 A changelog draft PR has been automatically created in docs-content: ${changelogPrUrl}`,
725719
});
726720
727-
- name: Send Slack failure alert
728-
if: failure()
729-
env:
730-
SLACK_CHANNEL_ID: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
731-
SLACK_TOKEN: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
732-
WORKFLOW_NAME: ${{ github.workflow }}
733-
REPOSITORY: ${{ github.repository }}
734-
RUN_ID: ${{ github.run_id }}
735-
SERVER_URL: ${{ github.server_url }}
736-
run: |
737-
curl -sS -X POST https://slack.com/api/chat.postMessage \
738-
-H "Authorization: Bearer ${SLACK_TOKEN}" \
739-
-H "Content-Type: application/json; charset=utf-8" \
740-
--data "$(cat <<EOF
741-
{
742-
"channel": "${SLACK_CHANNEL_ID}",
743-
"text": ":warning: Workflow failure in ${REPOSITORY}",
744-
"blocks": [
745-
{
746-
"type": "section",
747-
"text": {
748-
"type": "mrkdwn",
749-
"text": ":warning: *${WORKFLOW_NAME}* failed in *${REPOSITORY}*"
750-
}
751-
},
752-
{
753-
"type": "section",
754-
"text": {
755-
"type": "mrkdwn",
756-
"text": "<${SERVER_URL}/${REPOSITORY}/actions/runs/${RUN_ID}|View workflow run>"
757-
}
758-
}
759-
]
760-
}
761-
EOF
762-
)"
721+
# Local composite actions below require the repository to be checked out.
722+
- name: Check out repo
723+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
724+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
725+
726+
- uses: ./.github/actions/slack-alert
727+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
728+
with:
729+
slack_token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
730+
731+
- uses: ./.github/actions/create-workflow-failure-issue
732+
if: ${{ failure() && github.event_name != 'workflow_dispatch' }}
733+
with:
734+
token: ${{ secrets.DOCS_BOT_PAT_BASE }}

.github/workflows/enterprise-dates.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6666
name: Approve
67-
uses: juliangruber/approve-pull-request-action@dcc4effb325c0b503408619918d56e40653dcc91
67+
uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
6868
with:
6969
github-token: ${{ secrets.GITHUB_TOKEN }}
7070
number: ${{ steps.create-pull-request.outputs.pull-request-number }}

.github/workflows/link-check-on-pr.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,20 @@ jobs:
3636

3737
- uses: ./.github/actions/node-npm-setup
3838

39+
- name: Generate GitHub App token
40+
if: ${{ github.repository == 'github/docs-internal' }}
41+
id: app-token
42+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
43+
with:
44+
app-id: ${{ secrets.DOCS_BOT_APP_ID }}
45+
private-key: ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
46+
owner: github
47+
repositories: docs-early-access
48+
3949
- uses: ./.github/actions/get-docs-early-access
4050
if: ${{ github.repository == 'github/docs-internal' }}
4151
with:
42-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
52+
token: ${{ steps.app-token.outputs.token }}
4353

4454
- name: Get changed files
4555
id: changed-files
@@ -55,7 +65,7 @@ jobs:
5565
FILES_CHANGED: ${{ steps.changed-files.outputs.all_changed_files }}
5666
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5767
ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
58-
SHOULD_COMMENT: ${{ secrets.DOCS_BOT_PAT_BASE != '' }}
68+
SHOULD_COMMENT: ${{ secrets.DOCS_BOT_APP_ID != '' }}
5969
FAIL_ON_FLAW: true
6070
ENABLED_LANGUAGES: en
6171
run: npm run check-links-pr

.github/workflows/local-dev.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,20 @@ jobs:
2121

2222
- uses: ./.github/actions/node-npm-setup
2323

24+
- name: Generate GitHub App token
25+
if: ${{ github.repository == 'github/docs-internal' }}
26+
id: app-token
27+
uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2
28+
with:
29+
app-id: ${{ secrets.DOCS_BOT_APP_ID }}
30+
private-key: ${{ secrets.DOCS_BOT_APP_PRIVATE_KEY }}
31+
owner: github
32+
repositories: docs-early-access
33+
2434
- uses: ./.github/actions/get-docs-early-access
2535
if: ${{ github.repository == 'github/docs-internal' }}
2636
with:
27-
token: ${{ secrets.DOCS_BOT_PAT_BASE }}
37+
token: ${{ steps.app-token.outputs.token }}
2838

2939
- name: Disable Next.js telemetry
3040
run: npx next telemetry disable

.github/workflows/move-ready-to-merge-pr.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,21 @@ jobs:
2323
}}
2424
runs-on: ubuntu-latest
2525
steps:
26-
- name: move PR
27-
uses: alex-page/github-project-automation-plus@303f24a24c67ce7adf565a07e96720faf126fe36
26+
- name: Add PR to the open source board
27+
uses: actions/add-to-project@5afcf98fcd03f1c2f92c3c83f58ae24323cc57fd # v2.0.0
2828
with:
29-
project: Docs open source board
30-
column: Triage
31-
repo-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
29+
project-url: https://github.com/orgs/github/projects/2936
30+
github-token: ${{ secrets.DOCS_BOT_PAT_BASE }}
31+
32+
- name: Move PR to Triage on the open source board
33+
uses: github/update-project-action@af4f6083118f5080c89828b421ef598d1906fb60 # v4
34+
with:
35+
github_token: ${{ secrets.DOCS_BOT_PAT_BASE }}
36+
organization: github
37+
project_number: 2936
38+
content_id: ${{ github.event.pull_request.node_id }}
39+
field: Status
40+
value: Triage
3241

3342
- name: Check out repo
3443
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1

.github/workflows/sync-graphql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
- if: ${{ steps.create-pull-request.outputs.pull-request-number }}
6969
name: Approve
70-
uses: juliangruber/approve-pull-request-action@dcc4effb325c0b503408619918d56e40653dcc91
70+
uses: juliangruber/approve-pull-request-action@68fcc9a5a73b5641cadf757cf99d73720dcb05d0 # v2.1.0
7171
with:
7272
github-token: ${{ secrets.GITHUB_TOKEN }}
7373
number: ${{ steps.create-pull-request.outputs.pull-request-number }}

0 commit comments

Comments
 (0)