Releases: ataylorme/eslint-annotate-action
Releases · ataylorme/eslint-annotate-action
v4.0.0-beta.1
v4.0.0-beta.1
First beta of the major v4 rewrite. Please test and report any issues!
Use it in your workflow:
- uses: ataylorme/eslint-annotate-action@v4.0.0-beta.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
report-json: eslint_report.jsonYour workflow also needs:
permissions:
checks: write
pull-requests: read # only needed with only-pr-files: true or post-comment: trueBreaking changes
- Requires Node 24 — add
actions/setup-nodewithnode-version: '24'if your runner doesn't have it github-tokeninput is now required (explicit auth replacing@octokit/action)
Bug fixes
- Fix crash when
GITHUB_WORKSPACEis unset (#82, thanks @thefrosty) - Throw a clear error when the report glob matches no files (#93, thanks @joprice)
- Warnings now correctly annotated at
warninglevel instead offailure(#80, thanks @vldslv-a) - Fix null
ruleIdcrash for fatal parse errors and--report-unused-disable-directives
New inputs
| Input | Default | Description |
|---|---|---|
neutral-on-warning |
false |
Set check conclusion to neutral (not success) when only warnings exist (#89, thanks @jessetan) |
post-comment |
false |
Post/update a sticky PR comment with the ESLint summary (#90, thanks @jessetan) |
Tooling
3.0.0 - CONTAINS BREAKING CHANGES
3.0.0 - CONTAINS BREAKING CHANGES
- Rename the
repo-tokeninput toGITHUB_TOKEN - Run the Action itself on Node 20 instead of Node 16
- Truncate summary if too long
- Only add changed file to markdown summary if only changed files is true
- Use
@octokit/actioninstead ofactions-toolkit - Use ESLint types from
@types/eslintinstead of custom types - Default line to 1 if it's not present
2.2.0
- #66 Add support for multiple reports via glob patterns
- props @mskelton
- #65 Add report markdown to job summary
- props @velocibear
2.1.1
Merge pull request #64 from ataylorme/feat/report-unused-disable-dire…
1.2.0
- Add
fail-on-warninginput
1.2.0-beta1
1.1.3
1.1.3-beta1
Addresses start_column cannot be null error reported in #14
1.1.2
1.1.1
- Run script to completion, rather than exiting with a
0status code. See https://github.com/actions/toolkit/tree/master/packages/core#exit-codes for details - Correct success/failure ternary