From 7ddf6e05ac0810e277399e1761a156f6e56ffe84 Mon Sep 17 00:00:00 2001 From: Hiroshi Miura Date: Thu, 19 Dec 2024 09:59:35 +0900 Subject: [PATCH] chore/ci: update linter condition --- .github/workflows/run-linter.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-linter.yml b/.github/workflows/run-linter.yml index 1f06ddc0..b9644819 100644 --- a/.github/workflows/run-linter.yml +++ b/.github/workflows/run-linter.yml @@ -2,11 +2,19 @@ name: Run linter on: pull_request: + branches: + - master + types: + - opened + - synchronize + - reopened jobs: linter: name: Linter runs-on: ubuntu-22.04 + permissions: + pull-requests: write steps: - uses: actions/checkout@v4 - name: Setup python @@ -23,7 +31,7 @@ jobs: pip install .[check] - name: run reviewdog run: | - ./bin/reviewdog -runners=flake8,mypy,pylint -reporter=github-pr-check -conf=.reviewdog.yml + ./bin/reviewdog -runners=flake8,mypy -reporter=github-pr-review -conf=.reviewdog.yml env: REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }} REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}