Skip to content

Commit 10f2b5f

Browse files
committed
Merge branch 'master' into esther/docs-11154-handoff-notifications
2 parents dde4afc + 560e55f commit 10f2b5f

File tree

632 files changed

+37671
-5402
lines changed

Some content is hidden

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

632 files changed

+37671
-5402
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-06 17:45:47.042644",
8-
"spec_repo_commit": "01341d5b"
7+
"regenerated": "2025-06-09 14:48:02.888209",
8+
"spec_repo_commit": "79e7c933"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-06 17:45:56.106060",
13-
"spec_repo_commit": "01341d5b"
12+
"regenerated": "2025-06-09 14:48:12.662250",
13+
"spec_repo_commit": "79e7c933"
1414
}
1515
}
1616
}

.github/workflows/code-freeze.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ on:
1616
branches:
1717
# only target `master` branch
1818
- master
19+
workflow_dispatch:
20+
inputs:
21+
pr_number:
22+
description: 'Pull request number to check'
23+
required: false
24+
type: string
1925

2026
permissions:
2127
contents: read
@@ -25,12 +31,20 @@ jobs:
2531
runs-on: ubuntu-latest
2632
env:
2733
FREEZE_ENABLED: ${{ vars.FREEZE_ENABLED }}
34+
PR_NUMBER: ${{ github.event.inputs.pr_number || github.event.pull_request.number }}
2835
steps:
2936
- name: Check Status
3037
run: |
38+
if [ -n "$PR_NUMBER" ]; then
39+
echo "Checking code freeze status for PR #$PR_NUMBER"
40+
else
41+
echo "Checking code freeze status"
42+
fi
43+
3144
if [ "$FREEZE_ENABLED" = "true" ]; then
3245
echo "Code Freeze is enabled"
3346
exit 1
3447
else
48+
echo "Code freeze is not enabled - check passed"
3549
exit 0
3650
fi
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Retrigger Code Freeze
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
max_prs:
7+
description: 'Maximum number of PRs to retrigger (default: 50)'
8+
required: false
9+
default: '50'
10+
type: string
11+
12+
permissions:
13+
contents: read
14+
actions: write
15+
pull-requests: read
16+
17+
jobs:
18+
retrigger-code-freeze:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Get latest pull requests and retrigger code freeze
22+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7
23+
with:
24+
script: |
25+
const maxPrs = parseInt('${{ github.event.inputs.max_prs || 50 }}');
26+
27+
console.log(`Getting latest ${maxPrs} pull requests targeting master branch...`);
28+
29+
try {
30+
// Get latest PRs targeting master branch
31+
const { data: pullRequests } = await github.rest.pulls.list({
32+
owner: context.repo.owner,
33+
repo: context.repo.repo,
34+
state: 'open',
35+
base: 'master',
36+
sort: 'updated',
37+
direction: 'desc',
38+
per_page: maxPrs
39+
});
40+
41+
if (pullRequests.length === 0) {
42+
console.log('No open pull requests found targeting master branch');
43+
return;
44+
}
45+
46+
console.log(`Found ${pullRequests.length} pull requests`);
47+
console.log(`Pull request numbers: ${pullRequests.map(pr => pr.number).join(', ')}`);
48+
49+
// Retrigger code freeze workflow for each PR
50+
for (const pr of pullRequests) {
51+
console.log(`Retriggering code freeze for PR #${pr.number}...`);
52+
53+
try {
54+
// Trigger the code-freeze workflow
55+
await github.rest.actions.createWorkflowDispatch({
56+
owner: context.repo.owner,
57+
repo: context.repo.repo,
58+
workflow_id: 'code-freeze.yml',
59+
ref: pr.head.sha,
60+
inputs: {
61+
pr_number: pr.number.toString()
62+
}
63+
});
64+
65+
console.log(`Triggered code freeze check for PR #${pr.number} (SHA: ${pr.head.sha})`);
66+
67+
// Rate limiting - wait 2 seconds between requests
68+
await new Promise(resolve => setTimeout(resolve, 2000));
69+
} catch (error) {
70+
console.error(`Failed to trigger workflow for PR #${pr.number}: ${error.message}`);
71+
}
72+
}
73+
74+
console.log('Completed retriggering code freeze checks');
75+
} catch (error) {
76+
console.error(`Error: ${error.message}`);
77+
process.exit(1);
78+
}

.vscode/markdoc.code-snippets

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"Alert box": {
3+
"scope": "markdoc",
34
"prefix": ";;alert",
45
"body": ["{% alert level=\"${1|info,warning,danger|}\" %}", "${2:This is an alert message.}", "{% /alert %}"],
56
"description": "Markdoc alert block with a level attribute (info, warning, danger)"
67
},
78

89
"Callout": {
10+
"scope": "markdoc",
911
"prefix": ";;callout",
1012
"body": [
1113
"{% callout src=\"${1:https://www.example.com}\" header=\"${2:Join the Preview!}\" btn_hidden=${3|false,true|} %}",
@@ -16,6 +18,7 @@
1618
},
1719

1820
"Code block": {
21+
"scope": "markdoc",
1922
"prefix": ";;code",
2023
"body": [
2124
"```${1:javascript} {% filename=\"${2:example.js}\" collapsible=${3|true,false|} disable_copy=${4|false,true|} wrap=${5|false,true|} %}",
@@ -26,6 +29,7 @@
2629
},
2730

2831
"Definition list": {
32+
"scope": "markdoc",
2933
"prefix": ";;list",
3034
"body": [
3135
"Service",
@@ -45,6 +49,7 @@
4549
},
4650

4751
"If": {
52+
"scope": "markdoc",
4853
"prefix": ";;if",
4954
"body": [
5055
"{% if equals($${1:trait_id}, \"${2:option_id}\") %}",
@@ -55,6 +60,7 @@
5560
},
5661

5762
"Image": {
63+
"scope": "markdoc",
5864
"prefix": ";;image",
5965
"body": [
6066
"{% img src=\"${1:path/to/image.png}\" alt=\"${2:Descriptive alt text}\" style=\"${3:width:80%;}\" /%}"
@@ -63,12 +69,14 @@
6369
},
6470

6571
"Video": {
72+
"scope": "markdoc",
6673
"prefix": ";;;video",
6774
"body": ["{% img src=\"${1:path/to/video.mp4}\" alt=\"${2:Descriptive video alt text}\" video=\"true\" /%}"],
6875
"description": "Markdoc video tag using img with video attribute"
6976
},
7077

7178
"Region site address": {
79+
"scope": "markdoc",
7280
"prefix": ";;region-param",
7381
"body": [
7482
"{% region-param key=\"${1:dd_site}\" code=${2|false,true|} link=${3|false,true|} text=\"${4:Custom link text}\" /%}"
@@ -77,6 +85,7 @@
7785
},
7886

7987
"Region selector": {
88+
"scope": "markdoc",
8089
"prefix": ";;region",
8190
"body": [
8291
"{% site-region region=\"${1|us,us3,us5,eu,ap1,gov|}\" %}",
@@ -87,6 +96,7 @@
8796
},
8897

8998
"Table": {
99+
"scope": "markdoc",
90100
"prefix": ";;table",
91101
"body": [
92102
"{% table %}",
@@ -104,6 +114,7 @@
104114
},
105115

106116
"Tabs": {
117+
"scope": "markdoc",
107118
"prefix": ";;tabs",
108119
"body": [
109120
"{% tabs %}",
@@ -122,6 +133,7 @@
122133
},
123134

124135
"Check mark": {
136+
"scope": "markdoc",
125137
"prefix": ";;check",
126138
"body": "{% x/ %}",
127139
"description": "X tag (self-closing) for checkmark"

0 commit comments

Comments
 (0)