mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-11 18:26:50 +00:00
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.
This commit is contained in:
1
.github/workflows/linters.yml
vendored
1
.github/workflows/linters.yml
vendored
@@ -2,7 +2,6 @@ name: Linters
|
|||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
permissions:
|
permissions:
|
||||||
contents: read # to fetch code (actions/checkout)
|
contents: read # to fetch code (actions/checkout)
|
||||||
checks: write # to post check annotations
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: reviewdog
|
name: reviewdog
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ echo "::group:: Running prettier with reviewdog 🐶 ..."
|
|||||||
-efm="%Z[error]%r" \
|
-efm="%Z[error]%r" \
|
||||||
-efm="%-G%r" \
|
-efm="%-G%r" \
|
||||||
-name="prettier" \
|
-name="prettier" \
|
||||||
-reporter="github-pr-check" \
|
-reporter="github-pr-annotations" \
|
||||||
-filter-mode="nofilter" \
|
-filter-mode="nofilter" \
|
||||||
-fail-level="any" \
|
-fail-level="any" \
|
||||||
-level="error" \
|
-level="error" \
|
||||||
@@ -31,7 +31,7 @@ bundle exec rubocop \
|
|||||||
--fail-level info \
|
--fail-level info \
|
||||||
| reviewdog -f="rubocop" \
|
| reviewdog -f="rubocop" \
|
||||||
-name="rubocop" \
|
-name="rubocop" \
|
||||||
-reporter="github-pr-check" \
|
-reporter="github-pr-annotations" \
|
||||||
-filter-mode="nofilter" \
|
-filter-mode="nofilter" \
|
||||||
-level="error" \
|
-level="error" \
|
||||||
-fail-level="any" \
|
-fail-level="any" \
|
||||||
@@ -45,7 +45,7 @@ bundle exec haml-lint \
|
|||||||
--fail-level warning \
|
--fail-level warning \
|
||||||
| reviewdog -f="haml-lint" \
|
| reviewdog -f="haml-lint" \
|
||||||
-name="haml-lint" \
|
-name="haml-lint" \
|
||||||
-reporter="github-pr-check" \
|
-reporter="github-pr-annotations" \
|
||||||
-filter-mode="nofilter" \
|
-filter-mode="nofilter" \
|
||||||
-level="error" \
|
-level="error" \
|
||||||
-fail-level="any" \
|
-fail-level="any" \
|
||||||
|
|||||||
Reference in New Issue
Block a user