Skip to content

Commit d661f9c

Browse files
Add workflow for spell checking (#259)
* Add workflow for automated spell checking * enhance .typos.toml * improve spelling.yml --------- Co-authored-by: Viktor Szépe <[email protected]>
1 parent bcc7367 commit d661f9c

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

Diff for: .github/workflows/spelling.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Spelling
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request: null
8+
workflow_dispatch: null
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
typos_check:
16+
name: Typos
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Check spelling
23+
uses: crate-ci/typos@master

Diff for: .typos.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[files]
2+
extend-exclude = [
3+
".git/",
4+
"source/",
5+
"wordpress-stubs.php",
6+
]
7+
ignore-hidden = false
8+
9+
[default.extend-identifiers]
10+
Automattic = "Automattic"
11+
get_post_stati = "get_post_stati"
12+
Github = "GitHub"
13+
Woocommerce = "WooCommerce"
14+
Wordpress = "WordPress"

0 commit comments

Comments
 (0)