From 32cabeff8e25a6fcc4a1814651c17caa978897f5 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 11 Dec 2023 11:09:55 +0100 Subject: [PATCH 1/2] ci: use codespell instead of misspell-fixer --- .github/.codespellignore | 6 ++++++ .github/.misspell-fixer.ignore | 4 ---- .github/workflows/misspell.yml | 16 ++++++++++------ 3 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 .github/.codespellignore delete mode 100644 .github/.misspell-fixer.ignore diff --git a/.github/.codespellignore b/.github/.codespellignore new file mode 100644 index 000000000000..d92b9bbe22fc --- /dev/null +++ b/.github/.codespellignore @@ -0,0 +1,6 @@ +cips +pullrequest +keypair +stStr +pastTime +everytime \ No newline at end of file diff --git a/.github/.misspell-fixer.ignore b/.github/.misspell-fixer.ignore deleted file mode 100644 index 4536c720c985..000000000000 --- a/.github/.misspell-fixer.ignore +++ /dev/null @@ -1,4 +0,0 @@ -\*.pulsar.go -\*.pb.go -\*.pb.gw.go -\*.cosmos_orm.go \ No newline at end of file diff --git a/.github/workflows/misspell.yml b/.github/workflows/misspell.yml index e6d001cbb497..3dc459926656 100644 --- a/.github/workflows/misspell.yml +++ b/.github/workflows/misspell.yml @@ -2,7 +2,7 @@ name: Fix typos nightly on: schedule: - - cron: "0 8 * * *" + - cron: "0 12 * * *" jobs: build: @@ -10,15 +10,19 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: sobolevn/misspell-fixer-action@e5368f1b21585248afad4d32df9bc100451dbbff + - 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" --ignore-words=".github/.codespellignore" - uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.PRBOT_PAT }} - commit-message: "chore: fixes by misspell-fixer" - title: "chore: typos fix by misspell-fixer" + commit-message: "chore: fixes by cosmos-sdk bot" + title: "chore: typos fixes by cosmos-sdk bot" 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 is proto changes, please, run `make proto-gen` and commit changes. + Please review it, and merge if everything is fine. + If there are proto changes, run `make proto-gen` and commit the changes. From 5fb91a64802b548eec6bc7768fd0ca573fcfaeb8 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Mon, 11 Dec 2023 11:28:01 +0100 Subject: [PATCH 2/2] Update .github/.codespellignore Co-authored-by: Marko --- .github/.codespellignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/.codespellignore b/.github/.codespellignore index d92b9bbe22fc..2f0c9f648e7f 100644 --- a/.github/.codespellignore +++ b/.github/.codespellignore @@ -2,5 +2,4 @@ cips pullrequest keypair stStr -pastTime -everytime \ No newline at end of file +pastTime \ No newline at end of file