From 4050a84c2ae595d99ab9dd130a03a2277f0cc9cc Mon Sep 17 00:00:00 2001 From: Vritra4 Date: Thu, 14 Nov 2024 15:25:39 +0900 Subject: [PATCH] add spell checker --- .github/config/.codespellignore | 10 ++++++++++ .github/workflows/spellcheck.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/config/.codespellignore create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/config/.codespellignore b/.github/config/.codespellignore new file mode 100644 index 00000000..a9b0dab8 --- /dev/null +++ b/.github/config/.codespellignore @@ -0,0 +1,10 @@ +cips +pullrequest +keypair +pastTime +hasTables +Nam +EyT +upTo +initia +minitia diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 00000000..a7c5cd02 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,28 @@ +name: Spell Check + +on: + pull_request: + +jobs: + spellcheck: + 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,*.bin,go.sum,go.mod,statik.go,*.map" --ignore-words=.github/config/.codespellignore + - uses: peter-evans/create-pull-request@v7.0.5 + if: github.event_name != 'pull_request' + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: fix typos" + title: "chore: fix typos" + branch: "chore/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.