Created by @reidwil
-
Copy the contents of the
lint.yml
into$REPO_ROOT/.github/workflows/
directory of your github project. -
Create a PR with sql code
-
Comment on the PR with
/lint
(the specific trigger can be adjusted here) -
Sit back and wait for github actions to return the results!
This workflow is used in a github pull request as a comment. The lint only will run if you "trigger" it as a comment inside of a pull request.
The workflow uses diff-quality
to find only new files from a pull request relative to the default branch on the repository (main, master, development). It will lint those files and return a tidy comment on the pull request.
This process currently is dependent on:
-
action/checkout@v2
-
SQLfluff/Diff-quality for linting