Skip to content

Commit

Permalink
Merge branch 'test-vale' into test-vale-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jun 13, 2024
2 parents ca51fd8 + 2c829f6 commit cf69e40
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,21 @@ jobs:
- name: Create RDJSON Conversion Script
run: |
cat << 'EOF' > convert-to-rdjson.jq
. as $input | to_entries[] | .value[] | {
message: .Message,
location: {
path: $input.key,
range: {
start: { line: .Line, column: (.Span[0] + 1) },
end: { line: .Line, column: (.Span[1] + 1) }
}
},
severity: .Severity,
code: { value: .Check, url: .Link }
}
map(
# Construct the Reviewdog-compatible object
{
message: .Message,
location: {
path: .File,
range: {
start: { line: .Line, column: (.Span[0] + 1) },
end: { line: .Line, column: (.Span[1] + 1) }
}
},
severity: .Severity,
code: { value: .Check, url: .Link }
}
)
EOF
- name: Run Vale and Reviewdog on Changed Files
Expand Down

0 comments on commit cf69e40

Please sign in to comment.