From eee7809056b0c0f9892671bd7ef71b067b285942 Mon Sep 17 00:00:00 2001 From: vankichi Date: Mon, 12 Dec 2022 15:41:36 +0900 Subject: [PATCH] :green_heart: Separate language tool Signed-off-by: vankichi --- .github/workflows/reviewdog-markdown.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reviewdog-markdown.yml b/.github/workflows/reviewdog-markdown.yml index 636ad5a2e6a..3126598da2d 100644 --- a/.github/workflows/reviewdog-markdown.yml +++ b/.github/workflows/reviewdog-markdown.yml @@ -22,7 +22,7 @@ on: - "CHANGELOG.md" jobs: - languagetool: + languagetool_apis_charts: name: runner / LanguageTool runs-on: ubuntu-latest steps: @@ -35,7 +35,25 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review - patterns: "**/*.md **/*.md.gotmpl !**/CHANGELOG.md" + patterns: "apis/**/*.md apis/**/*.md.gotmpl chats/**/*.md chats/**/*.md.gotmpl" + level: warning + language: en-US + disabled_rules: "DOUBLE_PUNCTUATION,WORD_CONTAINS_UNDERSCORE,ARROWS,CURRENCY,DASH_RULE,EN_QUOTES,CASING" + disabled_categories: "TYPOS,TYPOGRAPHY,STYLE" + languagetool_docs: + name: runner / LanguageTool + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: set git config + run: | + git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: LanguageTool + uses: reviewdog/action-languagetool@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-review + patterns: "**/*.md **/*.md.gotmpl !**/CHANGELOG.md !apis/** !chats/**" level: warning language: en-US disabled_rules: "DOUBLE_PUNCTUATION,WORD_CONTAINS_UNDERSCORE,ARROWS,CURRENCY,DASH_RULE,EN_QUOTES"