Skip to content

Commit

Permalink
Merge branch 'dev' into pr/ZakGriffith/12834
Browse files Browse the repository at this point in the history
  • Loading branch information
corwintines committed May 17, 2024
2 parents 4c3446b + fc0d2f9 commit 70d14e6
Show file tree
Hide file tree
Showing 823 changed files with 75,217 additions and 390,835 deletions.
75 changes: 71 additions & 4 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -11490,7 +11490,8 @@
"avatar_url": "https://avatars.githubusercontent.com/u/72754835?v=4",
"profile": "https://github.com/0xemrekaya",
"contributions": [
"tutorial"
"tutorial",
"doc"
]
},
{
Expand Down Expand Up @@ -11736,7 +11737,8 @@
"avatar_url": "https://avatars.githubusercontent.com/u/61613931?v=4",
"profile": "https://dharmik79.github.io/portfolio.github.io/",
"contributions": [
"bug"
"bug",
"code"
]
},
{
Expand Down Expand Up @@ -11774,7 +11776,8 @@
"profile": "https://github.com/HayattiQ",
"contributions": [
"content",
"bug"
"bug",
"maintenance"
]
},
{
Expand Down Expand Up @@ -11828,7 +11831,8 @@
"avatar_url": "https://avatars.githubusercontent.com/u/8257719?v=4",
"profile": "http://rashidma.com",
"contributions": [
"bug"
"bug",
"doc"
]
},
{
Expand Down Expand Up @@ -11948,6 +11952,69 @@
"contributions": [
"maintenance"
]
},
{
"login": "sogobanwo",
"name": "sogobanwo",
"avatar_url": "https://avatars.githubusercontent.com/u/99739569?v=4",
"profile": "https://olorunsogo-portfolio-sand.vercel.app/",
"contributions": [
"maintenance"
]
},
{
"login": "liuye20240304",
"name": "liuye20240304",
"avatar_url": "https://avatars.githubusercontent.com/u/162123251?v=4",
"profile": "https://github.com/liuye20240304",
"contributions": [
"doc"
]
},
{
"login": "zk-Lumi",
"name": "Daniel Lumi",
"avatar_url": "https://avatars.githubusercontent.com/u/149794418?v=4",
"profile": "https://zksync.io",
"contributions": [
"maintenance"
]
},
{
"login": "ZakGriffith",
"name": "Zak G",
"avatar_url": "https://avatars.githubusercontent.com/u/12072395?v=4",
"profile": "https://github.com/ZakGriffith",
"contributions": [
"tutorial"
]
},
{
"login": "barskhianfannie",
"name": "Fannie Barskhian",
"avatar_url": "https://avatars.githubusercontent.com/u/42990794?v=4",
"profile": "http://fanniebarskhian.com",
"contributions": [
"maintenance"
]
},
{
"login": "ksdumont",
"name": "Keith Dumont",
"avatar_url": "https://avatars.githubusercontent.com/u/51958351?v=4",
"profile": "https://github.com/ksdumont",
"contributions": [
"content"
]
},
{
"login": "ecabras",
"name": "ecabras",
"avatar_url": "https://avatars.githubusercontent.com/u/126670074?v=4",
"profile": "https://github.com/ecabras",
"contributions": [
"content"
]
}
],
"contributorsPerLine": 7,
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/suggest_wallet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ body:
id: wallet_eip_1559_support
attributes:
label: Does the wallet support EIP-1559 (type 2) transactions?
description: Please provide information on the type of transactions this wallet supports.
description: Does your wallet support EIP-1559 (type 2) transactions for Ethereum Mainnet. Please provide information on the type of transactions this wallet supports. If this is not applicable, please explain.
validations:
required: true
- type: textarea
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/build-crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Crowdin project

on:
schedule:
- cron: "20 04 1 * *" # Runs at 4:20 AM on the first day of every month
workflow_dispatch:

jobs:
trigger_crowdin_project_build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn install

- name: Install ts-node
run: yarn global add ts-node

- name: Run script
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/triggerBuild.ts
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
34 changes: 34 additions & 0 deletions .github/workflows/generate-review-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Generate Crowdin translation review report

on:
workflow_dispatch:

jobs:
generate_report:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn install

- name: Install ts-node
run: yarn global add ts-node

- name: Run script
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/reports/generateReviewReport.ts
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

- name: Upload output as artifact
uses: actions/upload-artifact@v2
with:
name: output
path: ./src/data/crowdin/bucketsAwaitingReviewReport.csv
2 changes: 1 addition & 1 deletion .github/workflows/get-crowdin-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
create_pr:
get_data_and_create_pr:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/get-leaderboard-reports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Update Crowdin leaderboard data

on:
schedule:
- cron: "20 16 1 * *"
workflow_dispatch:

jobs:
get_data_and_create_pr:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn install

- name: Install ts-node
run: yarn global add ts-node

- name: Set up git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Action"
- name: Generate timestamp and readable date
id: date
run: |
echo "TIMESTAMP=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV
echo "READABLE_DATE=$(date +'%B %-d')" >> $GITHUB_ENV
- name: Fetch latest dev and create new branch
run: |
git fetch origin dev
git checkout -b "automated-update-${{ env.TIMESTAMP }}" origin/dev
- name: Run script
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/leaderboard/getLeaderboardReports.ts
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

- name: Commit and push
run: |
git add -A
git commit -m "Update Crowdin leaderboard data"
git push origin "automated-update-${{ env.TIMESTAMP }}"
- name: Create PR body
run: |
echo "This PR was automatically created to update Crowdin leaderboard data." > pr_body.txt
echo "This workflows runs on the first of each month at 16:20 (UTC)." >> pr_body.txt
echo "" >> pr_body.txt
echo "Thank you to everyone contributing to translate ethereum.org ❤️" >> pr_body.txt
- name: Create Pull Request
run: |
gh auth login --with-token ${{ secrets.GITHUB_TOKEN }}
gh pr create --base dev --head "automated-update-${{ env.TIMESTAMP }}" --title "Update translation leaderboard data from Crowdin - ${{ env.READABLE_DATE }}" --body-file pr_body.txt
2 changes: 1 addition & 1 deletion .github/workflows/get-translation-progress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
create_pr:
get_data_and_create_pr:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/get-translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Import Crowdin translations

on:
schedule:
- cron: "20 16 1 * *" # Runs at 4:20 PM on the first day of every month
workflow_dispatch:

jobs:
import_crowdin_and_create_prs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: yarn install

- name: Install ts-node
run: yarn global add ts-node

- name: Set up git
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Action"
- name: Fetch latest dev
run: git fetch origin dev

- name: Get translations
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/getTranslations.ts
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

- name: Authenticate GitHub CLI
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
- name: Process commits and post PRs by language
run: npx ts-node -O '{"module":"commonjs"}' ./src/scripts/crowdin/translations/postLangPRs.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/import-community-events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
create_pr:
get_data_and_create_pr:
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down

0 comments on commit 70d14e6

Please sign in to comment.