sqlfmt icon indicating copy to clipboard operation
sqlfmt copied to clipboard

Create JSON diffs for use in GitHub Actions

Open tconbeer opened this issue 3 years ago • 0 comments

Related to tconbeer/sqlfmt-docs#11

SQLFluff outputs JSON annotations for use with another GHA to annotate PRs. This is really nice! We should do this too. More.

Option could be either --diff-json or --diff --json. JSON should print to stdout for redirection purposes, e.g.,

sqlfmt $(git diff main --name-only) --diff --json > annotations.json`

Need to research how to format the annotations to show the desired change (a la code review suggestions)

tconbeer avatar Sep 13 '22 18:09 tconbeer