https://github.com/reviewdog/action-languagetool
Run languagetool with reviewdog :dog:
https://github.com/reviewdog/action-languagetool
reviewdog
Last synced: 5 months ago
JSON representation
Run languagetool with reviewdog :dog:
- Host: GitHub
- URL: https://github.com/reviewdog/action-languagetool
- Owner: reviewdog
- License: mit
- Created: 2020-02-08T05:52:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T16:46:52.000Z (7 months ago)
- Last Synced: 2024-10-19T16:55:50.844Z (6 months ago)
- Topics: reviewdog
- Language: Shell
- Homepage: https://github.com/marketplace?type=actions&query=reviewdog
- Size: 88.9 KB
- Stars: 39
- Watchers: 28
- Forks: 20
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- stars - reviewdog/action-languagetool - Run languagetool with reviewdog :dog: \[*MIT License*\] (⭐️43) (Shell)
- stars - reviewdog/action-languagetool - Run languagetool with reviewdog :dog: \[*MIT License*\] (⭐️39) (Shell)
README
# action-languagetool
[](https://github.com/reviewdog/action-languagetool/actions?query=workflow%3ATest)
[](https://github.com/reviewdog/action-languagetool/actions?query=workflow%3Areviewdog)
[](https://github.com/reviewdog/action-languagetool/actions?query=workflow%3Adepup)
[](https://github.com/reviewdog/action-languagetool/actions?query=workflow%3Arelease)
[](https://github.com/reviewdog/action-languagetool/releases)
[](https://github.com/haya14busa/action-bumpr)
This action runs [LanguageTool](https://github.com/languagetool-org/languagetool) check with [reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve code review experience.
## Input
```yaml
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
### Flags for reviewdog ###
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-pr-review].'
default: 'github-pr-check'
### Flags for target file ###
patterns:
description: 'Space separated target file glob patterns. https://github.com/haya14busa/ghglob'
default: '**/*.md **/*.txt'
### Flags for LanguageTool ###
# Ref: https://languagetool.org/http-api/swagger-ui/#!/default/post_check
language:
description: 'language of LanguageTool'
default: 'en-US'
enabled_rules:
description: 'comma separeted enabledRules of LanguageTool'
disabled_rules:
description: 'comma separeted disabledRules of LanguageTool'
default: 'WHITESPACE_RULE,EN_QUOTES,DASH_RULE,WORD_CONTAINS_UNDERSCORE,UPPERCASE_SENTENCE_START,ARROWS,COMMA_PARENTHESIS_WHITESPACE,UNLIKELY_OPENING_PUNCTUATION,SENTENCE_WHITESPACE,CURRENCY,EN_UNPAIRED_BRACKETS,PHRASE_REPETITION,PUNCTUATION_PARAGRAPH_END,METRIC_UNITS_EN_US,ENGLISH_WORD_REPEAT_BEGINNING_RULE'
enabled_categories:
description: 'comma separeted enabledCategories of LanguageTool'
disabled_categories:
description: 'comma separeted disabledCategories of LanguageTool'
default: 'TYPOS'
enabled_only:
description: 'enabledOnly of LanguageTool'
default: 'false'
custom_api_endpoint:
description: 'Custom API endpoint of LanguageTool server. e.g. https://languagetool.org/api'
default: ''
```## Usage
```yaml
name: reviewdog
on: [pull_request]
jobs:
linter_name:
name: runner /
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: reviewdog/action-languagetool@v1
with:
github_token: ${{ secrets.github_token }}
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
reporter: github-pr-review
# Change reporter level if you need.
level: info
```## Development
### Release
#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)
You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).
Pushing tag manually by yourself also work.#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)
This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.
ref: https://help.github.com/en/articles/about-actions#versioning-your-action### Lint - reviewdog integration
This reviewdog action template itself is integrated with reviewdog to run lints
which is useful for Docker container based actions.
Supported linters:
- [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)
- [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint)
- [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell)### Dependencies Update Automation
This repository uses [haya14busa/action-depup](https://github.com/haya14busa/action-depup) to update
reviewdog version.[](https://github.com/reviewdog/action-template/pull/6)