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
src
Optional. File patterns of target files. Same as -name [pattern]
of find
command. Default: *
Patterns are separated by lines. e.g.:
pattern: |
*.py
*.sh
Optional. 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@v4
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
locale: "US"