Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huacnlee/autocorrect-action
GitHub action for use AutoCorrect as lint
https://github.com/huacnlee/autocorrect-action
auto-correct autocorrect github-actions linter
Last synced: 11 days ago
JSON representation
GitHub action for use AutoCorrect as lint
- Host: GitHub
- URL: https://github.com/huacnlee/autocorrect-action
- Owner: huacnlee
- License: mit
- Created: 2021-07-19T15:59:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-18T02:15:03.000Z (5 months ago)
- Last Synced: 2024-10-24T11:15:27.217Z (20 days ago)
- Topics: auto-correct, autocorrect, github-actions, linter
- Language: Shell
- Homepage:
- Size: 33.2 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# autocorrect-action
GitHub Action to use [AutoCorrect](https://github.com/huacnlee/autocorrect) for lint.
https://github.com/huacnlee/autocorrect
## Usage
```yml
steps:
- uses: actions/checkout@v4
- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
```## Use NPM version AutoCorrect
```yml
steps:
- uses: actions/checkout@v4
- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
with:
use_npm: true
```## Enable ReviewDog for Report
```yml
steps:
- uses: actions/checkout@v4
- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
- name: Report ReviewDog
if: failure()
uses: huacnlee/autocorrect-action@v2
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
reviewdog: true
```### Only check changed file by PR
```yml
steps:
- uses: actions/checkout@v4
- name: AutoCorrect
uses: huacnlee/autocorrect-action@v2
with:
args: --lint --no-diff-bg-color $(git diff --diff-filter=AM --name-only ${{ github.event.pull_request.base.sha }}}
````