Skip to content

Commit 051718f

Browse files
author
Muhamad Sazwan Ismail
authored
Merge branch 'github:main' into main
2 parents 159bd1b + 4fa5aed commit 051718f

8,871 files changed

Lines changed: 10641094 additions & 8519090 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.

.devcontainer/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# To find available Node images, see https://mcr.microsoft.com/en-us/product/devcontainers/javascript-node/tags
2-
3-
# [Choice] Node.js version
4-
ARG VARIANT="dev-24-bullseye"
5-
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
2+
ARG VARIANT=dev-24-bullseye
3+
FROM mcr.microsoft.com/devcontainers/javascript-node:dev-24-bullseye@sha256:3502f1f21b1989500e8c72ada7d6e496dc4540b0707d4ea4ff743077f88a6c2d

.devcontainer/devcontainer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
// Install features. Type 'feature' in the VS Code command palette for a full list.
1313
"features": {
1414
"sshd": "latest",
15-
"ghcr.io/devcontainers/features/github-cli:1": {}
15+
"ghcr.io/devcontainers/features/copilot-cli:1": {
16+
"version": "prerelease"
17+
},
18+
"ghcr.io/devcontainers/features/github-cli:1": {},
19+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
1620
},
1721

1822
"customizations": {
@@ -59,10 +63,8 @@
5963
},
6064

6165
// Lifecycle commands
62-
// Install dependencies then install Copilot CLI
63-
"onCreateCommand": "npm ci && npm install -g @github/copilot@prerelease",
6466
// Start a web server and keep it running
65-
"postStartCommand": "nohup bash -c 'npm start &'",
67+
"postStartCommand": "nohup bash -c 'npm ci && npm start &'",
6668
// Set port 4000 to be public
6769
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
6870

.gitattributes

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Set default behavior, in case users don't have core.autocrlf set.
22
* text=auto
3-
# Explicitly declare text files we want to always be normalized and converted
4-
# to native line endings on checkout.
5-
*.md text diff=markdown
3+
# Explicitly declare text files we want to always be normalized, and for
4+
# Markdown files, enforce LF line endings on checkout.
5+
*.md text eol=lf diff=markdown
66
*.json.br filter=lfs diff=lfs merge=lfs -text
7+
.github/workflows/*.lock.yml linguist-generated=true merge=ours

.github/CODEOWNERS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,5 @@
66
# Site Policy
77
content/site-policy/ @github/site-policy-admins
88

9-
# Enterprise
10-
data/release-notes/**/*.yml @github/docs-content-enterprise
11-
src/ghes-releases/lib/enterprise-dates.json @github/docs-content-enterprise
12-
139
# Requires review of #actions-oidc-integration, docs-engineering/issues/1506
1410
# content/actions/deployment/security-hardening-your-deployments/** @github/oidc

.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 }}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Create workflow failure issue
2+
description: Create or update a GitHub issue in docs-engineering when a workflow fails, for automated diagnosis by an agentic workflow.
3+
4+
inputs:
5+
token:
6+
description: A token with issues write permission on the target repo
7+
required: true
8+
repo:
9+
description: The repository to create the issue in
10+
default: github/docs-engineering
11+
required: false
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- name: Check for existing open issue
17+
id: check-existing
18+
shell: bash
19+
env:
20+
GH_TOKEN: ${{ inputs.token }}
21+
ISSUE_REPO: ${{ inputs.repo }}
22+
WORKFLOW_NAME: ${{ github.workflow }}
23+
run: |
24+
existing=$(gh issue list \
25+
--repo "$ISSUE_REPO" \
26+
--label "workflow-failure" \
27+
--search "in:title [Workflow Failure] $WORKFLOW_NAME" \
28+
--state open \
29+
--json number \
30+
--jq '.[0].number // empty' 2>/dev/null || true)
31+
echo "existing_issue=$existing" >> "$GITHUB_OUTPUT"
32+
33+
- name: Comment on existing issue
34+
if: steps.check-existing.outputs.existing_issue != ''
35+
shell: bash
36+
env:
37+
GH_TOKEN: ${{ inputs.token }}
38+
ISSUE_REPO: ${{ inputs.repo }}
39+
ISSUE_NUMBER: ${{ steps.check-existing.outputs.existing_issue }}
40+
WORKFLOW_NAME: ${{ github.workflow }}
41+
SOURCE_REPO: ${{ github.repository }}
42+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
43+
EVENT_NAME: ${{ github.event_name }}
44+
GIT_REF: ${{ github.ref }}
45+
run: |
46+
body=$(cat <<EOF
47+
### Repeat failure
48+
49+
**Workflow:** \`$WORKFLOW_NAME\`
50+
**Repository:** \`$SOURCE_REPO\`
51+
**Run:** $RUN_URL
52+
**Event:** \`$EVENT_NAME\`
53+
**Ref:** \`$GIT_REF\`
54+
**Timestamp:** $(date -u +%Y-%m-%dT%H:%M:%SZ)
55+
EOF
56+
)
57+
gh issue comment "$ISSUE_NUMBER" \
58+
--repo "$ISSUE_REPO" \
59+
--body "$body"
60+
61+
- name: Create workflow failure issue
62+
if: steps.check-existing.outputs.existing_issue == ''
63+
shell: bash
64+
env:
65+
GH_TOKEN: ${{ inputs.token }}
66+
ISSUE_REPO: ${{ inputs.repo }}
67+
WORKFLOW_NAME: ${{ github.workflow }}
68+
SOURCE_REPO: ${{ github.repository }}
69+
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
70+
EVENT_NAME: ${{ github.event_name }}
71+
GIT_REF: ${{ github.ref }}
72+
ACTOR: ${{ github.actor }}
73+
run: |
74+
body=$(cat <<EOF
75+
### Workflow failure
76+
77+
**Workflow:** \`$WORKFLOW_NAME\`
78+
**Repository:** \`$SOURCE_REPO\`
79+
**Run:** $RUN_URL
80+
**Event:** \`$EVENT_NAME\`
81+
**Ref:** \`$GIT_REF\`
82+
**Triggered by:** \`$ACTOR\`
83+
**Timestamp:** $(date -u +%Y-%m-%dT%H:%M:%SZ)
84+
85+
---
86+
This issue was automatically created by the create-workflow-failure-issue action to enable automated diagnosis.
87+
EOF
88+
)
89+
gh issue create \
90+
--repo "$ISSUE_REPO" \
91+
--label "workflow-failure" \
92+
--label "workflow-generated" \
93+
--title "[Workflow Failure] $WORKFLOW_NAME" \
94+
--body "$body"

.github/actions/get-changed-files/action.yml

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

0 commit comments

Comments
 (0)