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 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