Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Jetblue's Linting On Comment Workflow

Created by @reidwil


How To:

  1. Copy the contents of the lint.yml into $REPO_ROOT/.github/workflows/ directory of your github project.

  2. Create a PR with sql code

  3. Comment on the PR with /lint (the specific trigger can be adjusted here)

  4. Sit back and wait for github actions to return the results!

Info

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:

  1. action/checkout@v2

  2. SQLfluff/Diff-quality for linting

  3. Khan's pull request trigger

  4. octions's post comments