Skip to content

Instantly share code, notes, and snippets.

@gpichot
Created December 27, 2019 10:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gpichot/874a19d858413f7e4590d940b7e9a234 to your computer and use it in GitHub Desktop.
Save gpichot/874a19d858413f7e4590d940b7e9a234 to your computer and use it in GitHub Desktop.
Gitlab ci lint zsh
function gitlabcilint() {
data=$(cat .gitlab-ci.yml | node -e 'fs=require("fs");console.log(JSON.stringify({content:fs.readFileSync(0,"utf8")}))')
curl --header "Content-Type: application/json" https://gitlab.com/api/v4/ci/lint --data "${data}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment