From 36ac5dc44eb6a9e5814f2d17573c36af16c299c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <2887858+deivid-rodriguez@users.noreply.github.com> Date: Thu, 13 Nov 2025 20:39:09 +0100 Subject: [PATCH] Let reviewdog use github-pr-annotation formatter This is already the default for forked PRs, and most (if not all) PRs to this repository come from forks anyways. --- .github/workflows/linters.yml | 1 - script/reviewdog.sh | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 9a15ced5ac..a443f003b1 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -2,7 +2,6 @@ name: Linters on: [pull_request] permissions: contents: read # to fetch code (actions/checkout) - checks: write # to post check annotations jobs: lint: name: reviewdog diff --git a/script/reviewdog.sh b/script/reviewdog.sh index 1114245e43..5bde805fba 100755 --- a/script/reviewdog.sh +++ b/script/reviewdog.sh @@ -17,7 +17,7 @@ echo "::group:: Running prettier with reviewdog 🐶 ..." -efm="%Z[error]%r" \ -efm="%-G%r" \ -name="prettier" \ - -reporter="github-pr-check" \ + -reporter="github-pr-annotations" \ -filter-mode="nofilter" \ -fail-level="any" \ -level="error" \ @@ -31,7 +31,7 @@ bundle exec rubocop \ --fail-level info \ | reviewdog -f="rubocop" \ -name="rubocop" \ - -reporter="github-pr-check" \ + -reporter="github-pr-annotations" \ -filter-mode="nofilter" \ -level="error" \ -fail-level="any" \ @@ -45,7 +45,7 @@ bundle exec haml-lint \ --fail-level warning \ | reviewdog -f="haml-lint" \ -name="haml-lint" \ - -reporter="github-pr-check" \ + -reporter="github-pr-annotations" \ -filter-mode="nofilter" \ -level="error" \ -fail-level="any" \