This action runs misspell with reviewdog on pull requests to improve code review experience.
Optional. ${{ github.token }} is used by default.
Optional. -locale flag of misspell. [US/UK]
Optional. Report level for reviewdog [info,warning,error].
It's the same as the -level flag of reviewdog.
Optional. Reporter for reviewdog command [github-pr-check,github-pr-review].
It's the same as the -reporter flag of reviewdog.
Optional. Ignore (-i) a list of comma-separated words. [armor] / [armor,color].
Optional. Base directory to run misspell. Same as [path] of find command. Default: .
Directories are separated by lines. e.g.:
path: |
doc
srcOptional. File patterns of target files. Same as -name [pattern] of find command. Default: *
Patterns are separated by lines. e.g.:
pattern: |
*.py
*.shOptional. Exclude patterns of target files. Same as -not -path [exclude] of find command.
e.g. ./.git/*
Patterns are separated by lines. e.g.:
exclude: |
./.git/*
./.cache/*Optional. Filtering mode for the reviewdog command [added,diff_context,file,nofilter]. Default: added.
Optional. If set to none, always use exit code 0 for reviewdog.
Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level.
Possible values: [none, any, info, warning, error]
Default is none.
Deprecated, use fail_level instead.
Optional. Exit code for reviewdog when errors are found [true,false]. Default: false.
name: reviewdog
on: [pull_request]
jobs:
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- name: Check out code.
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: misspell
uses: reviewdog/action-misspell@9daa94af4357dddb6fd3775de806bc0a8e98d3e4 # v1.26.3
with:
github_token: ${{ secrets.github_token }}
locale: "US"