Skip to content

Commit 29befda

Browse files
authored
docs: fix PR title spellcheck (#1133)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated workflows to trigger on all pull request branches. - Enhanced PR title workflow to check spelling errors using `cspell`. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent c2587a1 commit 29befda

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/check_pr_title.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- reopened
88
- edited
99
- synchronize
10+
pull_request:
11+
branches:
12+
- '**'
1013

1114
jobs:
1215
lint:
@@ -33,9 +36,10 @@ jobs:
3336

3437
- name: Check PR title spelling
3538
env:
36-
$PR_TITLE: ${{ github.event.pull_request.title }}
39+
PR_TITLE: ${{ github.event.pull_request.title }}
3740
run: |
38-
if ! cspell --words-only --no-progress <<< "$PR_TITLE"; then
41+
echo "$PR_TITLE"
42+
if ! cspell --no-progress stdin <<< "$PR_TITLE"; then
3943
echo "Spelling errors found in PR title"
4044
exit 1
4145
fi

0 commit comments

Comments
 (0)