-
Notifications
You must be signed in to change notification settings - Fork 547
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
358 changed files
with
27,007 additions
and
18,728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
env: { | ||
node: true, | ||
commonjs: true, | ||
es2017: true, | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2021, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Check Locale PR | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- 'locale/**' | ||
|
||
jobs: | ||
check-locale-pr: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Label PR and enforce base branch | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
console.log(JSON.stringify(context.payload.pull_request)); | ||
const { repo, owner } = context.repo; | ||
// Get the pull request | ||
const pull_number = context.payload.pull_request.number; | ||
const pull_request = await github.rest.pulls.get({ | ||
owner, | ||
repo, | ||
pull_number | ||
}); | ||
// Add the 'translation' label | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['translation'] | ||
}) | ||
// Check if the base branch is 'main' or 'master' | ||
if (pull_request.data.base.ref === 'main' || pull_request.data.base.ref === 'master') { | ||
// Change the base branch to 'develop' | ||
await github.rest.pulls.update({ | ||
owner, | ||
repo, | ||
pull_number, | ||
base: 'develop' | ||
}); | ||
} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run locale:check | ||
id: locale-check | ||
run: npm run locale:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"ignore": { | ||
"open": { | ||
"versions": "> 7.1.0", | ||
"reason": "Doesn't work when powershell is not in PATH or something like that." | ||
}, | ||
"fs-extra": { | ||
"versions": ">9", | ||
"reason": "recipe errors on some OSs" | ||
}, | ||
"execa": { | ||
"versions": "^5", | ||
"reason": "following @sindresorhus/windows-release" | ||
}, | ||
"windows-release": { | ||
"versions": "^5.1.1", | ||
"reason": "inlined to transform it into async" | ||
}, | ||
"nanoid": { | ||
"versions": ">4", | ||
"reason": "dropped support for node 16" | ||
}, | ||
"got": { | ||
"versions": ">13", | ||
"reason": "dropped support for node 16" | ||
}, | ||
"jose": { | ||
"versions": ">4", | ||
"reason": "dropped support for node 16" | ||
}, | ||
"lowdb": { | ||
"versions": ">6", | ||
"reason": "dropped support for node 16" | ||
} | ||
} | ||
} |
Oops, something went wrong.