From 3b4bf11cebef05aba35a8bddc1aac2b82ffd8702 Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Sat, 12 Oct 2024 20:40:33 +0200 Subject: [PATCH 1/3] Add workflow for automated spell checking --- .github/workflows/spelling.yml | 25 +++++++++++++++++++++++++ .typos.toml | 10 ++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/spelling.yml create mode 100644 .typos.toml diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 0000000..3d4f372 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,25 @@ +name: Spell Check with Typos + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + cancel-in-progress: true + +jobs: + run: + name: Spell Check with Typos + runs-on: ubuntu-latest + steps: + - name: Checkout Actions Repository + uses: actions/checkout@v4 + + - name: Check spelling + uses: crate-ci/typos@master diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..0426423 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,10 @@ +[files] +extend-exclude = [ + ".git/", + "source/", + "wordpress-stubs.php", +] +ignore-hidden = false + +[default.extend-identifiers] +get_post_stati = "get_post_stati" From bab77de7e0cccceb272afaf6c418c01f4a0b2b66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 13 Oct 2024 00:59:15 +0200 Subject: [PATCH 2/3] enhance .typos.toml --- .typos.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.typos.toml b/.typos.toml index 0426423..16024d7 100644 --- a/.typos.toml +++ b/.typos.toml @@ -7,4 +7,8 @@ extend-exclude = [ ignore-hidden = false [default.extend-identifiers] +Automattic = "Automattic" get_post_stati = "get_post_stati" +Github = "GitHub" +Woocommerce = "WooCommerce" +Wordpress = "WordPress" From 310646a596790078e06683ac5c0488015cc26071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 13 Oct 2024 01:02:01 +0200 Subject: [PATCH 3/3] improve spelling.yml --- .github/workflows/spelling.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml index 3d4f372..e2fcefc 100644 --- a/.github/workflows/spelling.yml +++ b/.github/workflows/spelling.yml @@ -1,24 +1,22 @@ -name: Spell Check with Typos +name: Spelling on: push: branches: - - master - pull_request: - branches: - - master - workflow_dispatch: + - master + pull_request: null + workflow_dispatch: null concurrency: - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - run: - name: Spell Check with Typos + typos_check: + name: Typos runs-on: ubuntu-latest steps: - - name: Checkout Actions Repository + - name: Checkout repository uses: actions/checkout@v4 - name: Check spelling