Skip to content

Commit f7282cf

Browse files
authored
feat: migrate to GitHub (#1)
1 parent 6871fa0 commit f7282cf

File tree

263 files changed

+59052
-47
lines changed

Some content is hidden

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

263 files changed

+59052
-47
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

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
examples/

.eslintrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"root": true,
3+
"plugins": [
4+
"eslint-plugin-tsdoc"
5+
],
6+
"parserOptions": {
7+
"project": ["tsconfig.json"]
8+
},
9+
"extends": ["@scaleway/react/typescript"],
10+
"rules": {
11+
"tsdoc/syntax": "warn",
12+
"@typescript-eslint/naming-convention": [
13+
"error",
14+
{
15+
"selector": "enumMember",
16+
"format": ["PascalCase"]
17+
}
18+
],
19+
"import/prefer-default-export": "off",
20+
"import/no-default-export": "error",
21+
"no-await-in-loop": "off",
22+
"@typescript-eslint/no-namespace": "off"
23+
}
24+
}

.github/renovate.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"extends": [
3+
":combinePatchMinorReleases",
4+
":separateMultipleMajorReleases",
5+
"group:monorepos",
6+
"group:recommended",
7+
"helpers:disableTypesNodeMajor"
8+
],
9+
"assignees": ["team:devtools"],
10+
"assigneesSampleSize": 1,
11+
"reviewers": ["team:devtools", "team:console"],
12+
"reviewersSampleSize": 2,
13+
"updateNotScheduled": true,
14+
"lockFileMaintenance": { "enabled": false },
15+
"enabledManagers": ["github-actions", "npm"],
16+
"prCreation": "not-pending",
17+
"prHourlyLimit": 5,
18+
"prConcurrentLimit": 10,
19+
"automerge": false,
20+
"rangeStrategy": "bump",
21+
"rebaseWhen": "auto",
22+
"dependencyDashboard": true,
23+
"packageRules": [
24+
{
25+
"automerge": false,
26+
"matchPackagePatterns": ["^@scaleway/"],
27+
"stabilityDays": 0,
28+
"matchUpdateTypes": ["major", "minor", "patch"]
29+
},
30+
{
31+
"labels": ["UPDATE-MAJOR"],
32+
"stabilityDays": 14,
33+
"matchUpdateTypes": ["major"]
34+
},
35+
{
36+
"labels": ["UPDATE-MINOR"],
37+
"stabilityDays": 5,
38+
"matchUpdateTypes": ["minor"]
39+
},
40+
{
41+
"labels": ["UPDATE-PATCH"],
42+
"stabilityDays": 1,
43+
"matchUpdateTypes": ["patch"]
44+
},
45+
{
46+
"matchPackagePatterns": [
47+
"^@babel/",
48+
"^@commitlint/",
49+
"^babel-",
50+
"cz-conventional-changelog",
51+
"eslint",
52+
"husky",
53+
"jest",
54+
"lint-staged"
55+
],
56+
"automerge": true,
57+
"automergeType": "branch",
58+
"semanticCommitScope": "minor-deps",
59+
"stabilityDays": 3,
60+
"matchUpdateTypes": ["minor"]
61+
},
62+
{
63+
"matchPackagePatterns": [
64+
"^@babel/",
65+
"^@commitlint/",
66+
"^@semantic-release/",
67+
"^@types/",
68+
"^babel-",
69+
"^eslint",
70+
"cz-conventional-changelog",
71+
"husky",
72+
"jest",
73+
"lint-staged"
74+
],
75+
"automerge": true,
76+
"automergeType": "branch",
77+
"semanticCommitScope": "patch-deps",
78+
"stabilityDays": 1,
79+
"matchUpdateTypes": ["patch"]
80+
}
81+
]
82+
}

.github/workflows/check_pull_request_title.yml renamed to .github/workflows/check_pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Check Pull Request Title
1+
name: Check Pull Request
22
on:
33
pull_request:
44
types: ['opened', 'edited', 'reopened', 'synchronize']

.github/workflows/run_tests.yml

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,35 +49,4 @@ jobs:
4949
- run: pnpm run build
5050
- run: pnpm run test:coverage
5151
- uses: codecov/[email protected]
52-
deploy:
53-
runs-on: ubuntu-20.04
54-
needs: [test]
55-
if: github.ref == 'refs/heads/main'
56-
steps:
57-
- uses: actions/[email protected]
58-
with:
59-
fetch-depth: "0"
60-
persist-credentials: false
61-
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
62-
- name: Git Identity
63-
run: |
64-
git config --global user.name 'Scaleway Bot'
65-
git config --global user.email '[email protected]'
66-
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
69-
- uses: pnpm/[email protected]
70-
- name: Use Node.js
71-
uses: actions/[email protected]
72-
with:
73-
node-version: 17
74-
check-latest: true
75-
- run: pnpm install
76-
- run: pnpm run build
77-
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
78-
env:
79-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
80-
- run: pnpm lerna publish -y --create-release github --ignore-scripts --no-verify-access
81-
env:
82-
HUSKY: 0
83-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
52+

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# dependencies
2+
node_modules/
3+
yarn.lock
4+
5+
# misc
6+
.DS_Store
7+
8+
# lint
9+
.eslintcache
10+
11+
# test & build
12+
.reports
13+
docs
14+
public
15+
dist
16+
coverage
17+
18+
# Protobuf definition
19+
protobuf
20+
.bufcache

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
[ -n "$CI" ] && exit 0
4+
5+
. "$(dirname "$0")/_/husky.sh"
6+
7+
pnpm commitlint --edit $1

.husky/pre-commit

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
[ -n "$CI" ] && exit 0
4+
5+
. "$(dirname "$0")/_/husky.sh"
6+
7+
pnpm lint-staged

0 commit comments

Comments
 (0)