From e53d231fe882a3bad86c9f4b4ca5f295cfb6eb73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joshcs=2Eeth=20=E1=B5=8D=E1=B5=90?= Date: Thu, 14 Dec 2023 15:04:09 -0500 Subject: [PATCH 1/4] feat: fix typos nightly --- .github/workflows/spell_check.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/spell_check.yml diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml new file mode 100644 index 00000000000..092cc2b35bf --- /dev/null +++ b/.github/workflows/spell_check.yml @@ -0,0 +1,28 @@ +name: Fix typos nightly + +on: + schedule: + - cron: "0 12 * * *" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Run codespell + continue-on-error: true + run: | + sudo apt-get install codespell -y + codespell -w --skip="*.pulsar.go,*.pb.go,*.pb.gw.go,*.cosmos_orm.go,*.json,*.git,*.js,crypto/keys,fuzz,*.h,proto/tendermint" --ignore-words=.github/.codespellignore + - uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.PAT_CREATE_PR }} + commit-message: "chore: spelling errors fixes" + title: "chore: fix spelling errors" + branch: "bot/fix-typos" + delete-branch: true + body: | + This PR fixes typos in the codebase. + Please review it, and merge if everything is fine. + If there are proto changes, run `make proto-gen` and commit the changes. \ No newline at end of file From 6200fc7ccebf7e4f90f06c18feafc7f1e01fa342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joshcs=2Eeth=20=E1=B5=8D=E1=B5=90?= Date: Thu, 14 Dec 2023 15:04:48 -0500 Subject: [PATCH 2/4] feat: add ci check --- .github/workflows/spellcheck.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 00000000000..cbbc3fe0f45 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,18 @@ +name: Spell Check + +on: [push, pull_request] + +jobs: + spell_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install codespell + run: pip install codespell + - name: Run spell check + run: codespell --ignore-words=codespell.txt --skip="*.png,*.jpg,*.gif,*.ico,*.min.js,*.min.css,*.woff,*.woff2,*.puml" -I .codespell-ignorewords-list --quiet-level=2 || exit 1 + \ No newline at end of file From f25b16571b3f22438fb9444c56d4c1d9924113c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joshcs=2Eeth=20=E1=B5=8D=E1=B5=90?= Date: Thu, 14 Dec 2023 15:07:02 -0500 Subject: [PATCH 3/4] feat: add .codespellignore --- .github/.codespellignore | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .github/.codespellignore diff --git a/.github/.codespellignore b/.github/.codespellignore new file mode 100644 index 00000000000..39eb2488241 --- /dev/null +++ b/.github/.codespellignore @@ -0,0 +1,6 @@ +cips +pullrequest +nmt +namespaces +namespace +das \ No newline at end of file From 90287f4c5b0c7e83e49fbddf1c9708897dd31587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?joshcs=2Eeth=20=E1=B5=8D=E1=B5=90?= Date: Thu, 14 Dec 2023 15:08:29 -0500 Subject: [PATCH 4/4] fix: remove manual wflow --- .github/workflows/spellcheck.yml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml deleted file mode 100644 index cbbc3fe0f45..00000000000 --- a/.github/workflows/spellcheck.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Spell Check - -on: [push, pull_request] - -jobs: - spell_check: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - name: Install codespell - run: pip install codespell - - name: Run spell check - run: codespell --ignore-words=codespell.txt --skip="*.png,*.jpg,*.gif,*.ico,*.min.js,*.min.css,*.woff,*.woff2,*.puml" -I .codespell-ignorewords-list --quiet-level=2 || exit 1 - \ No newline at end of file