Skip to content

Commit 6c0bf70

Browse files
committed
feat: add format-generated Makefile rule with ESLint flat config
0 parents  commit 6c0bf70

File tree

704 files changed

+152759
-0
lines changed

Some content is hidden

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

704 files changed

+152759
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.github/CODEOWNERS

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# These owners will be the default owners for everything in
2+
# the repo. Unless a later match takes precedence,
3+
* @remyleone
4+
5+
/packages/clients/src/api/account/ @scaleway/devtools-core
6+
/packages/clients/src/api/applesilicon/ @scaleway/devtools-compute-foundation
7+
/packages/clients/src/api/baremetal/ @scaleway/devtools-compute-foundation
8+
/packages/clients/src/api/billing/ @scaleway/devtools-core
9+
/packages/clients/src/api/block/ @scaleway/devtools-storage
10+
/packages/clients/src/api/cockpit/ @scaleway/devtools-dms
11+
/packages/clients/src/api/container/ @scaleway/devtools-compute
12+
/packages/clients/src/api/dedibox/ @scaleway/devtools-compute-foundation
13+
/packages/clients/src/api/domain/ @scaleway/devtools-dms
14+
/packages/clients/src/api/flexibleip/ @scaleway/devtools-network
15+
/packages/clients/src/api/function/ @scaleway/devtools-compute
16+
/packages/clients/src/api/iam/ @scaleway/devtools-core
17+
/packages/clients/src/api/instance/ @scaleway/devtools-compute
18+
/packages/clients/src/api/inference/ @scaleway/devtools-ai
19+
/packages/clients/src/api/iot/ @scaleway/devtools-dms
20+
/packages/clients/src/api/ipam/ @scaleway/devtools-network
21+
/packages/clients/src/api/jobs/ @scaleway/devtools-compute
22+
/packages/clients/src/api/k8s/ @scaleway/devtools-compute
23+
/packages/clients/src/api/key_manager/ @scaleway/devtools-core
24+
/packages/clients/src/api/lb/ @scaleway/devtools-network
25+
/packages/clients/src/api/marketplace/ @scaleway/devtools-compute
26+
/packages/clients/src/api/mnq/ @scaleway/devtools-dms
27+
/packages/clients/src/api/rdb/ @scaleway/devtools-dms
28+
/packages/clients/src/api/redis/ @scaleway/devtools-dms
29+
/packages/clients/src/api/registry/ @scaleway/devtools-compute
30+
/packages/clients/src/api/secret/ @scaleway/devtools-core
31+
/packages/clients/src/api/serverless_sqldb/ @scaleway/devtools-dms
32+
/packages/clients/src/api/tem/ @scaleway/devtools-dms
33+
/packages/clients/src/api/vpc/ @scaleway/devtools-network
34+
/packages/clients/src/api/vpcgw/ @scaleway/devtools-network
35+
/packages/clients/src/api/webhosting/ @scaleway/devtools-dms

.github/labeler.yml

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
account:
2+
- changed-files:
3+
- any-glob-to-any-file:
4+
- packages/clients/src/api/account/**
5+
6+
apple-silicon:
7+
- changed-files:
8+
- any-glob-to-any-file:
9+
- packages/clients/src/api/applesilicon/**
10+
11+
baremetal:
12+
- changed-files:
13+
- any-glob-to-any-file:
14+
- packages/clients/src/api/baremetal/**
15+
16+
billing:
17+
- changed-files:
18+
- any-glob-to-any-file:
19+
- packages/clients/src/api/billing/**
20+
21+
container:
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- packages/clients/src/api/container/**
25+
26+
domain:
27+
- changed-files:
28+
- any-glob-to-any-file:
29+
- packages/clients/src/api/domain/**
30+
31+
flexible-ip:
32+
- changed-files:
33+
- any-glob-to-any-file:
34+
- packages/clients/src/api/flexibleip/**
35+
36+
function:
37+
- changed-files:
38+
- any-glob-to-any-file:
39+
- packages/clients/src/api/function/**
40+
41+
iam:
42+
- changed-files:
43+
- any-glob-to-any-file:
44+
- packages/clients/src/api/iam/**
45+
46+
instance:
47+
- changed-files:
48+
- any-glob-to-any-file:
49+
- packages/clients/src/api/instance/**
50+
51+
iot:
52+
- changed-files:
53+
- any-glob-to-any-file:
54+
- packages/clients/src/api/iot/**
55+
56+
k8s:
57+
- changed-files:
58+
- any-glob-to-any-file:
59+
- packages/clients/src/api/k8s/**
60+
61+
load-balancer:
62+
- changed-files:
63+
- any-glob-to-any-file:
64+
- packages/clients/src/api/lb/**
65+
66+
mnq:
67+
- changed-files:
68+
- any-glob-to-any-file:
69+
- packages/clients/src/api/mnq/**
70+
71+
object:
72+
- changed-files:
73+
- any-glob-to-any-file:
74+
- packages/clients/src/api/object/**
75+
76+
rdb:
77+
- changed-files:
78+
- any-glob-to-any-file:
79+
- packages/clients/src/api/rdb/**
80+
81+
redis:
82+
- changed-files:
83+
- any-glob-to-any-file:
84+
- packages/clients/src/api/redis/**
85+
86+
registry:
87+
- changed-files:
88+
- any-glob-to-any-file:
89+
- packages/clients/src/api/registry/**
90+
91+
sdb:
92+
- changed-files:
93+
- any-glob-to-any-file:
94+
- packages/clients/src/api/sdb/**
95+
96+
secret:
97+
- changed-files:
98+
- any-glob-to-any-file:
99+
- packages/clients/src/api/secret/**
100+
101+
tem:
102+
- changed-files:
103+
- any-glob-to-any-file:
104+
- packages/clients/src/api/tem/**
105+
106+
vpc:
107+
- changed-files:
108+
- any-glob-to-any-file:
109+
- packages/clients/src/api/vpc/**
110+
111+
vpcgw:
112+
- changed-files:
113+
- any-glob-to-any-file:
114+
- packages/clients/src/api/vpcgw/**
115+
116+
webhosting:
117+
- changed-files:
118+
- any-glob-to-any-file:
119+
- packages/clients/src/api/webhosting/**

.github/renovate.json

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"extends": [
3+
":combinePatchMinorReleases",
4+
":separateMultipleMajorReleases",
5+
"group:monorepos",
6+
"group:recommended",
7+
"helpers:disableTypesNodeMajor"
8+
],
9+
"updateNotScheduled": true,
10+
"lockFileMaintenance": {
11+
"enabled": false
12+
},
13+
"enabledManagers": ["github-actions", "npm"],
14+
"prCreation": "not-pending",
15+
"prHourlyLimit": 5,
16+
"prConcurrentLimit": 10,
17+
"automerge": false,
18+
"rangeStrategy": "bump",
19+
"rebaseWhen": "auto",
20+
"dependencyDashboard": true,
21+
"packageRules": [
22+
{
23+
"matchPackageNames": ["@scaleway/sdk", "@scaleway/configuration-loader"],
24+
"enabled": false
25+
},
26+
{
27+
"automerge": false,
28+
"minimumReleaseAge": null,
29+
"matchUpdateTypes": ["major", "minor", "patch"],
30+
"matchPackageNames": ["/^@scaleway//"]
31+
},
32+
{
33+
"labels": ["UPDATE-MAJOR"],
34+
"minimumReleaseAge": "14 days",
35+
"matchUpdateTypes": ["major"]
36+
},
37+
{
38+
"labels": ["UPDATE-MINOR"],
39+
"minimumReleaseAge": "5 days",
40+
"matchUpdateTypes": ["minor"]
41+
},
42+
{
43+
"labels": ["UPDATE-PATCH"],
44+
"minimumReleaseAge": "1 day",
45+
"matchUpdateTypes": ["patch"]
46+
},
47+
{
48+
"automerge": true,
49+
"automergeType": "branch",
50+
"semanticCommitScope": "minor-deps",
51+
"minimumReleaseAge": "3 days",
52+
"matchUpdateTypes": ["minor"],
53+
"matchPackageNames": [
54+
"/^@babel//",
55+
"/^@commitlint//",
56+
"/^babel-/",
57+
"/cz-conventional-changelog/",
58+
"/eslint/",
59+
"/husky/",
60+
"/jest/",
61+
"/lint-staged/"
62+
]
63+
},
64+
{
65+
"automerge": true,
66+
"automergeType": "branch",
67+
"semanticCommitScope": "patch-deps",
68+
"minimumReleaseAge": "1 day",
69+
"matchUpdateTypes": ["patch"],
70+
"matchPackageNames": [
71+
"/^@babel//",
72+
"/^@commitlint//",
73+
"/^@semantic-release//",
74+
"/^@types//",
75+
"/^babel-/",
76+
"/^eslint/",
77+
"/cz-conventional-changelog/",
78+
"/husky/",
79+
"/jest/",
80+
"/lint-staged/"
81+
]
82+
}
83+
]
84+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Check Pull Request
2+
on:
3+
pull_request:
4+
types: ['opened', 'edited', 'reopened', 'synchronize']
5+
merge_group:
6+
7+
jobs:
8+
check-title:
9+
runs-on: ubuntu-24.04
10+
steps:
11+
- uses: actions/[email protected]
12+
- uses: pnpm/[email protected]
13+
- name: Use Node.js
14+
uses: actions/[email protected]
15+
with:
16+
node-version: 20
17+
check-latest: true
18+
cache: 'pnpm'
19+
- run: make install-dependencies
20+
- name: Check title
21+
run: |
22+
title=$(cat <<- "EOF"
23+
${{ github.event.pull_request.title }}
24+
EOF
25+
)
26+
if [ "$title" == "feat: update generated APIs" ]; then
27+
echo "Invalid title."
28+
exit 1
29+
else
30+
echo "$title" | pnpm commitlint
31+
fi

.github/workflows/deploy-doc.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Deploy Ref Doc
2+
3+
on:
4+
# Runs on tags
5+
push:
6+
tags:
7+
- '**'
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: 'pages'
21+
cancel-in-progress: true
22+
23+
# Default to bash
24+
defaults:
25+
run:
26+
shell: bash
27+
28+
jobs:
29+
# Build job
30+
doc-build:
31+
runs-on: ubuntu-24.04
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: 0
37+
- name: Setup PNPM
38+
uses: pnpm/[email protected]
39+
- name: Setup Node
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
check-latest: true
44+
cache: 'pnpm'
45+
- name: Setup Pages
46+
id: pages
47+
uses: actions/configure-pages@v5
48+
- name: Install dependencies
49+
run: make install-dependencies
50+
- name: Build doc
51+
run: make doc
52+
- name: Upload artifact
53+
uses: actions/upload-pages-artifact@v3
54+
with:
55+
path: ./docs
56+
57+
# Deployment job
58+
doc-deploy:
59+
needs: doc-build
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
steps:
65+
- name: Deploy to GitHub Pages
66+
id: deployment
67+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)