8585 working-directory : apps/web
8686 run : |
8787 pnpm biome check src --reporter=json 2>&1 | \
88- reviewdog -f=biome -reporter=github-pr-review -fail-level=error
88+ jq -r '.diagnostics[] | {
89+ message: .message,
90+ location: {
91+ path: .location.path.file,
92+ range: {
93+ start: { line: .location.span[0].line, column: .location.span[0].column },
94+ end: { line: .location.span[1].line, column: .location.span[1].column }
95+ }
96+ },
97+ severity: (if .severity == "error" then "ERROR" elif .severity == "warning" then "WARNING" else "INFO" end)
98+ }' | \
99+ reviewdog -f=rdjsonl -reporter=github-pr-review -fail-level=error
89100
90101 ruff :
91102 name : Ruff (Python)
@@ -109,7 +120,19 @@ jobs:
109120 run : |
110121 uv sync --frozen
111122 uv run ruff check --output-format=json . 2>&1 | \
112- reviewdog -f=ruff -reporter=github-pr-review -fail-level=error
123+ jq -r '.[] | {
124+ message: .message,
125+ location: {
126+ path: .filename,
127+ range: {
128+ start: { line: .location.row, column: .location.column },
129+ end: { line: .end_location.row, column: .end_location.column }
130+ }
131+ },
132+ code: { value: .code },
133+ severity: "WARNING"
134+ }' | \
135+ reviewdog -f=rdjsonl -name="ruff-api" -reporter=github-pr-review -fail-level=error
113136
114137 - name : Run Ruff with reviewdog (Worker)
115138 env :
@@ -118,7 +141,19 @@ jobs:
118141 run : |
119142 uv sync --frozen
120143 uv run ruff check --output-format=json . 2>&1 | \
121- reviewdog -f=ruff -reporter=github-pr-review -fail-level=error
144+ jq -r '.[] | {
145+ message: .message,
146+ location: {
147+ path: .filename,
148+ range: {
149+ start: { line: .location.row, column: .location.column },
150+ end: { line: .end_location.row, column: .end_location.column }
151+ }
152+ },
153+ code: { value: .code },
154+ severity: "WARNING"
155+ }' | \
156+ reviewdog -f=rdjsonl -name="ruff-worker" -reporter=github-pr-review -fail-level=error
122157
123158 flutter :
124159 name : Flutter Analyze
0 commit comments