A simple workflow, that creates pull request reviews for ESLint problems
The path to the directory, which includes files like package.json
or .eslintrc.json
.
Default: .
What you want to lint. Relative to project-root
.
Default: .
Example: src
(Lints every lintable file in the source folder)
The GitHub Token of the repository. It is needed for reviewing the Pull Requests.
Required
Example: ${{ secrets.GITHUB_TOKEN }}
The ESLint Format to print the linting result to the GitHub Actions log
Default: stylish
Examples: codeframe
, compact
, table
, tap
, unix
, visualstudio
0 for dismissing change-requests, 1 for approving after change-requests, 2 for approving always if ESLint doesn't fail
Default: 0
Comma separated list of file the fileendings, ESLint should lint.
Default: js,jsx,ts,tsx
name: ESLint PR review
on:
push:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: rpkak/ESLint-PR-review@latest
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
src: src
eslint-format: table
Use rpkak/ESLint-PR-review@latest
to get the latest none development version ESLint PR review.
Please report everything like bugs by creating an issue.
Version: v1.2.1
by rpkak