-
Notifications
You must be signed in to change notification settings - Fork 173
chore: check typos only on changed files in PRs #2221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,19 @@ jobs: | |
| name: Spell check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| - name: Check spelling with typos | ||
| uses: crate-ci/typos@v1.43.0 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Get changed files | ||
| id: changed-files | ||
| uses: tj-actions/changed-files@v47 | ||
| with: | ||
| separator: ' ' | ||
|
|
||
| - name: Check spelling with typos | ||
| if: steps.changed-files.outputs.any_changed == 'true' | ||
| uses: crate-ci/typos@v1.43.0 | ||
| with: | ||
| files: ${{ steps.changed-files.outputs.all_changed_files }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Spell check fails on deleted filesMedium Severity The |
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space separator breaks filenames containing spaces
Low Severity
Using
separator: ' '(space) to separate filenames is problematic when any changed file has a space in its name. Thetj-actions/changed-filesaction may quote such filenames, but thecrate-ci/typosaction receiving this input viafilesmay not correctly parse quoted paths. This would cause spell checking to fail or skip files with spaces in their names. Using a newline separator would be safer.Additional Locations (1)
.github/workflows/spell-check.yaml#L28-L29