Skip to content

LuxDie/push-linter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Push Linter

This repository is configured to lint JavaScript files on each push.

To enable this feature in your repository:

  1. copy webtask.js to your repository root

  2. create a Github token

  3. sign up to webtask.io

  4. create a webtask through console as follows (replace the 3 strings inside "{}")

echo https://webtask.it.auth0.com/api/run/{webtask_container}?key=$(curl -s https://webtask.it.auth0.com/api/tokens/issue -H "Authorization: Bearer {webtask_token}" -H "Content-Type: application/json" --data-binary '{"url":"https://raw.githubusercontent.com/auth0/webtask-scripts/master/github/smarthook.js", "ectx": {"github_token": "{github_token}"}}')

  1. create a GitHub webhook and add the previous command echo as the Payload URL

After that, whenever you make a push, the webtask will scan for errors and comment on each commit if it finds one.

This is an example project. Feel free to make suggestions and pull requests.

About

This test repository lints files on each push.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published