Skip to content

Commit 66f7e37

Browse files
committed
Merge branch 'production' into ranbel/warp-global-override
2 parents 514d404 + 7b231e3 commit 66f7e37

File tree

923 files changed

+60348
-8055
lines changed

Some content is hidden

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

923 files changed

+60348
-8055
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/.github/actions/assign-pr/index.js @cloudflare/pcx-technical-writing
1111
/.github/styles/cloudflare/spelling-exceptions.txt @cloudflare/pcx-technical-writing
1212
/src/components/ @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @marciocloudflare @haleycode @maxvp @GregBrimble @KianNH @WalshyDev
13+
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
1314
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1415
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1516
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
@@ -139,7 +140,7 @@
139140
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
140141
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing
141142
/src/content/docs/workers/static-assets @irvinebroque @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
142-
/src/content/docs/workflows/ @ToriLindsay @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
143+
/src/content/docs/workflows/ @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
143144

144145
# DDoS Protection
145146

.github/workflows/pr.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,3 @@ jobs:
1818
- uses: ./.github/actions/assign-pr
1919
with:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
22-
review_comment:
23-
name: Add review comment
24-
runs-on: ubuntu-latest
25-
steps:
26-
- id: check_if_contributor_is_external
27-
name: Check if contributor is external
28-
run: 'curl --write-out ''%{http_code}'' --silent --output /dev/null -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GH_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/cloudflare/members/${{ github.event.pull_request.user.login }} | grep -q ''204'' && echo "is_external=false" >> $GITHUB_OUTPUT || echo "is_external=true" >> $GITHUB_OUTPUT'
29-
env:
30-
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
31-
- name: External comment
32-
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review new, external PRs within **2 weeks**. If it's been longer than then without any movement, tag the PR **Assignees** in a comment."
33-
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
34-
env:
35-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
GH_REPO: ${{ github.repository }}
37-
NUMBER: ${{ github.event.pull_request.number }}
38-
- name: Internal comment
39-
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally."
40-
if: steps.check_if_contributor_is_external.outputs.is_external == 'false'
41-
env:
42-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43-
GH_REPO: ${{ github.repository }}
44-
NUMBER: ${{ github.event.pull_request.number }}

.hyperlint/config.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
content_dir: /src/content
2-
authorized_users:
3-
- dcpena
4-
- kodster28
5-
- KianNH
6-
- marciocloudflare
7-
- pedrosousa
8-
- ranbel
9-
- RebeccaTamachiro
10-
style_guide:
2+
reviewer:
3+
custom_comment: |-
4+
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within **two (2) weeks**. If it's been two weeks or longer without any movement, please tag the PR **Assignees** in a comment.
5+
6+
We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally.
117
enabled: true
12-
openapi:
13-
enabled: true
14-
urls:
15-
- https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
8+
external_link_validation:
9+
check_status_upon_review_failure: neutral
10+
summarize_pull_request:
11+
enabled: true
12+
vale_style_guide:
13+
check_status_upon_review_failure: neutral
14+
enabled: true
15+
limit_num_reviews: 2
16+
limit_num_comments: 7

astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ export default defineConfig({
103103
components: {
104104
Footer: "./src/components/overrides/Footer.astro",
105105
Head: "./src/components/overrides/Head.astro",
106+
Header: "./src/components/overrides/Header.astro",
106107
Hero: "./src/components/overrides/Hero.astro",
107108
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
108109
Sidebar: "./src/components/overrides/Sidebar.astro",
109110
PageTitle: "./src/components/overrides/PageTitle.astro",
110-
SocialIcons: "./src/components/overrides/SocialIcons.astro",
111111
TableOfContents: "./src/components/overrides/TableOfContents.astro",
112112
},
113113
sidebar,
@@ -122,7 +122,7 @@ export default defineConfig({
122122
exclude: [
123123
"/api/",
124124
"/api/**",
125-
"/changelog/",
125+
"/changelog/**",
126126
"/http/resources/**",
127127
"{props.*}",
128128
"/",

bin/fetch-ai-models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "fs";
33
fetch("https://ai.cloudflare.com/api/models")
44
.then((res) => res.json())
55
.then((data) => {
6-
data.models.forEach((model) => {
6+
data.models.map((model) => {
77
const fileName = model.name.split("/")[2];
88
fs.writeFileSync(
99
`./src/content/workers-ai-models/${fileName}.json`,

bin/fetch-warp-releases.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ for (let track of tracks) {
3535
track = track.replace("noble-intel", "linux");
3636
}
3737

38-
const path = `./src/content/warp-releases/${track}/${item.version}.yaml`;
38+
const folder = `./src/content/warp-releases/${track}`;
39+
const path = `${folder}/${item.version}.yaml`;
40+
41+
if (!fs.existsSync(folder)) {
42+
fs.mkdirSync(folder, { recursive: true });
43+
}
3944

4045
if (fs.existsSync(path)) {
4146
console.log(`${track} ${item.version} already exists.`);
@@ -66,13 +71,16 @@ for (let track of tracks) {
6671
});
6772

6873
const releaseNotes = tokens.reduce((s, t) => s + t.raw, "");
74+
const platformName = data.platformName.startsWith("noble-")
75+
? "Linux"
76+
: data.platformName;
6977

7078
fs.writeFileSync(
7179
`./src/content/warp-releases/${track}/${item.version}.yaml`,
7280
YAML.stringify({
7381
...item,
7482
releaseNotes,
75-
platformName: data.platformName,
83+
platformName,
7684
}),
7785
"utf-8",
7886
);

0 commit comments

Comments
 (0)