From 41170f1b9c4f5c5788cb677c6c2f9ef26010243d Mon Sep 17 00:00:00 2001 From: OKURA Masafumi Date: Fri, 18 Aug 2023 20:46:11 +0900 Subject: [PATCH 1/5] Use v2 in README (#69) It looks like v2 is already released, so README should point it instead of v1. --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 2c845ce..84597fc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Any warnings or errors will be annotated in the Pull Request. ## Usage ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 ``` ### Parameter: check_filenames @@ -16,7 +16,7 @@ If set, check file names for spelling mistakes as well. This parameter is optional; by default `codespell` will only check the file contents. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: check_filenames: true ``` @@ -28,7 +28,7 @@ If set, check hidden files (those starting with ".") for spelling mistakes as we This parameter is optional; by default `codespell` will not check hidden files. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: check_hidden: true ``` @@ -40,7 +40,7 @@ File with lines that should not be checked for spelling mistakes. This parameter is optional; by default `codespell` will check all lines. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: exclude_file: src/foo ``` @@ -52,7 +52,7 @@ Comma-separated list of files to skip (it accepts globs as well). This parameter is optional; by default `codespell` won't skip any files. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: skip: foo,bar ``` @@ -64,7 +64,7 @@ Comma-separated list of builtin dictionaries to use. This parameter is optional; by default `codespell` will use its default selection of built in dictionaries. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: builtin: clear,rare ``` @@ -77,7 +77,7 @@ Words are case sensitive based on how they are written in the dictionary file. This parameter is optional; by default `codespell` will check all words for typos. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: ignore_words_file: .codespellignore ``` @@ -90,7 +90,7 @@ Words are case sensitive based on how they are written in the dictionary file. This parameter is optional; by default `codespell` will check all words for typos. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: ignore_words_list: abandonned,ackward ``` @@ -104,7 +104,7 @@ If set to "*", all misspelling in URIs and emails will be ignored. This parameter is optional; by default `codespell` will check all URIs and emails for typos. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: uri_ignore_words_list: abandonned ``` @@ -117,7 +117,7 @@ This can be useful if your project has code you don't want to spell check for so This parameter is optional; by default `codespell` will run on your whole repository. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: path: src ``` @@ -131,7 +131,7 @@ All errors and warnings are annotated in Pull Requests, but it will act like eve This parameter is optional; setting this to any value will enable it. ```yml -uses: codespell-project/actions-codespell@v1 +uses: codespell-project/actions-codespell@v2 with: only_warn: 1 ``` From 8dc81685022bbd5008e21ddb6f44abe4eb4f27b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Sep 2023 08:56:10 -0400 Subject: [PATCH 2/5] Bump actions/checkout from 3 to 4 (#72) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/publish_master.yml | 2 +- .github/workflows/publish_stable.yml | 2 +- .github/workflows/testing.yml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_master.yml b/.github/workflows/publish_master.yml index 7e2ebd8..f38f0de 100644 --- a/.github/workflows/publish_master.yml +++ b/.github/workflows/publish_master.yml @@ -13,7 +13,7 @@ jobs: name: Publish master image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: | GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z]) diff --git a/.github/workflows/publish_stable.yml b/.github/workflows/publish_stable.yml index 18283fc..4aabefa 100644 --- a/.github/workflows/publish_stable.yml +++ b/.github/workflows/publish_stable.yml @@ -10,7 +10,7 @@ jobs: name: Publish stable image runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: | GITHUB_REPOSITORY_LC=$(echo "${GITHUB_REPOSITORY}" | tr [A-Z] [a-z]) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 554eafe..3c8f25b 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 @@ -48,7 +48,7 @@ jobs: name: Test run action runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./ with: path: test/testdata @@ -58,7 +58,7 @@ jobs: name: Check for spelling errors runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ./ with: check_filenames: true @@ -86,7 +86,7 @@ jobs: include: - codespell_pip_version: 'git+https://github.com/codespell-project/codespell.git' steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 - run: pip3 --quiet --quiet install ${{ matrix.codespell_pip_version }} From 8edd9f294002b35e8d7de67b06ac493e89114b91 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Dec 2023 14:49:50 -0500 Subject: [PATCH 3/5] Bump actions/setup-python from 4 to 5 (#74) Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/testing.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3c8f25b..097f442 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' @@ -88,7 +88,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 - run: pip3 --quiet --quiet install ${{ matrix.codespell_pip_version }} - run: | # Simulate the Dockerfile COPY command From 3174815d6231f5bdc24dbfb6fc3b8caec73d521c Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Tue, 27 Feb 2024 00:43:18 +0530 Subject: [PATCH 4/5] feat: bump to use node20 runtime (#71) * feat: bump to use node20 runtime, actions/checkout to v4 * Setup pre-commit to run codespell Eat our own dogfood... * codespell --skip="abandonned,ackward,bu" * codespell --ignore-words-list="abandonned,ackward,bu" * Update testing.yml --------- Co-authored-by: Christian Clauss --- .github/workflows/testing.yml | 2 +- .pre-commit-config.yaml | 8 ++++++++ codespell-problem-matcher/action.yml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 097f442..62ca0bf 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -64,7 +64,7 @@ jobs: check_filenames: true check_hidden: true # When using this Action in other repos, the --skip option below can be removed - skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml + skip: ./.git,./codespell-problem-matcher/test,./test,./README.md,./.github/workflows/testing.yml,./.pre-commit-config.yaml # Check our README (and this workflow) ignoring the two intentional typos - uses: ./ with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..927bd3d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + args: [--ignore-words-list, "abandonned,ackward,bu"] + additional_dependencies: + - tomli diff --git a/codespell-problem-matcher/action.yml b/codespell-problem-matcher/action.yml index 6d34e83..eb40b8d 100644 --- a/codespell-problem-matcher/action.yml +++ b/codespell-problem-matcher/action.yml @@ -2,7 +2,7 @@ name: 'codespell problem matcher' author: 'Peter Newman' description: 'Shows codespell errors as annotation (with file and code line) in GitHub Actions' runs: - using: 'node12' + using: 'node20' main: 'index.js' branding: icon: 'search' From 406322ec52dd7b488e48c1c4b82e2a8b3a1bf630 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 09:10:51 -0400 Subject: [PATCH 5/5] [pre-commit.ci] pre-commit autoupdate (#76) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](https://github.com/codespell-project/codespell/compare/v2.2.6...v2.3.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 927bd3d..4c71139 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.3.0 hooks: - id: codespell args: [--ignore-words-list, "abandonned,ackward,bu"]