Skip to content

Commit 8b976b2

Browse files
Merge remote-tracking branch 'upstream/main' into dependabot/npm_and_yarn/npm_and_yarn-2bd33993d4
# Conflicts: # package-lock.json
2 parents 225d9e5 + 44386ac commit 8b976b2

File tree

5,162 files changed

+2277839
-2485673
lines changed

Some content is hidden

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

5,162 files changed

+2277839
-2485673
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# To find available Node images, see https://mcr.microsoft.com/en-us/product/devcontainers/javascript-node/tags
22

33
# [Choice] Node.js version
4-
ARG VARIANT="dev-22-bullseye"
4+
ARG VARIANT="dev-24-bullseye"
55
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}

.devcontainer/devcontainer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"build": {
77
"dockerfile": "Dockerfile",
88
// Update 'VARIANT' to pick a Node version
9-
"args": { "VARIANT": "22" }
9+
"args": { "VARIANT": "24" }
1010
},
1111

1212
// Install features. Type 'feature' in the VS Code command palette for a full list.
@@ -59,11 +59,13 @@
5959
},
6060

6161
// Lifecycle commands
62-
"onCreateCommand": "npm ci",
62+
// Install dependencies then install Copilot CLI
63+
"onCreateCommand": "npm ci && npm install -g @github/copilot@prerelease",
64+
// Start a web server and keep it running
6365
"postStartCommand": "nohup bash -c 'npm start &'",
64-
// Set the port to be public
66+
// Set port 4000 to be public
6567
"postAttachCommand": "gh cs ports visibility 4000:public -c \"$CODESPACE_NAME\"",
66-
68+
6769
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6870
"remoteUser": "node",
6971

.dockerignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
.vscode/
55
contributing/
66
docs/
7-
node_modules/
8-
tests/
9-
# Folder is cloned during the Dockerfile build
107
docs-early-access/
8+
node_modules/
119
README.md
10+
tests/

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
# https://git-scm.com/docs/gitignore
55

66
# Site Policy
7-
/content/site-policy/ @github/site-policy-admins
7+
content/site-policy/ @github/site-policy-admins
88

99
# Enterprise
10-
/data/release-notes/**/*.yml @github/docs-content-enterprise
10+
data/release-notes/**/*.yml @github/docs-content-enterprise
1111
src/ghes-releases/lib/enterprise-dates.json @github/docs-content-enterprise
1212

1313
# Requires review of #actions-oidc-integration, docs-engineering/issues/1506

.github/actions/labeler/labeler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import coreLib from '@actions/core'
44
import { type Octokit } from '@octokit/rest'
55
import { CoreInject } from '@/links/scripts/action-injections'
66

7-
import github from '#src/workflows/github.ts'
8-
import { getActionContext } from '#src/workflows/action-context.ts'
9-
import { boolEnvVar } from '#src/workflows/get-env-inputs.ts'
7+
import github from '@/workflows/github'
8+
import { getActionContext } from '@/workflows/action-context'
9+
import { boolEnvVar } from '@/workflows/get-env-inputs'
1010

1111
type Options = {
1212
addLabels?: string[]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 'Retry command'
2+
description: 'Retries any command with configurable attempts and delay'
3+
inputs:
4+
command:
5+
description: 'The command to retry'
6+
required: true
7+
max_attempts:
8+
description: 'Maximum number of retry attempts'
9+
required: false
10+
default: '12'
11+
delay:
12+
description: 'Delay between attempts in seconds'
13+
required: false
14+
default: '30'
15+
16+
runs:
17+
using: 'composite'
18+
steps:
19+
- name: Retry command
20+
shell: bash
21+
run: |
22+
# Generic retry function: configurable attempts and delay
23+
retry_command() {
24+
local max_attempts=${{ inputs.max_attempts }}
25+
local delay=${{ inputs.delay }}
26+
local attempt=1
27+
local command="${{ inputs.command }}"
28+
29+
while [ $attempt -le $max_attempts ]; do
30+
echo "Attempt $attempt/$max_attempts: Running command..."
31+
echo "Command: $command"
32+
if eval "$command"; then
33+
echo "Command succeeded on attempt $attempt"
34+
return 0
35+
else
36+
echo "Attempt $attempt failed"
37+
if [ $attempt -lt $max_attempts ]; then
38+
echo "Waiting $delay seconds before retry..."
39+
sleep $delay
40+
fi
41+
fi
42+
attempt=$((attempt + 1))
43+
done
44+
45+
echo "Command failed after $max_attempts attempts"
46+
return 1
47+
}
48+
49+
retry_command

.github/branch_protection_settings/README.md

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

.github/branch_protection_settings/main.json

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

0 commit comments

Comments
 (0)