8000 GitHub - lukeledet/lintron: An experiment in automated linting of pull requests.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lukeledet/lintron

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lintron

Automatically lints Github Pull Requests and posts lints as review comments.

Example Comment

Setup

bundle install

Lintron uses a GitHub machine user to make the comments. You just set up a separate user for it and set up a new developer application for that user. Then, you will need a .env file containing to the following keys:

GITHUB_USERNAME=…from the github user
GITHUB_TOKEN=…from the github user
GITHUB_WEBHOOK_SECRET=…make up a secret shared between lintron and github
GITHUB_APP_ID=…the developer application's id
GITHUB_APP_SECRET=…the developer application's secret

Setting Up Webhooks

Lintron uses webhooks to know when a PR has been created or updated. You'll need to set up the webhook on each repo you want Lintron to monitor.

Webhooks

The webhook url will be https://yourlintronhost/github_webhooks. The secret will be the one you set in your .env file. Lintron needs to be on a publicly reachable host to receive webhooks.

Local CLI

gem install lintron

You must create a .linty_rc file like:

{
  "base_branch": "origin/master",
  "base_url": "URL_OF_YOUR_LINTRON"
}

Then you can run lintron or lintron --watch

Copyright

Copyright (c) 2016 Robert Prehn and Revelry Labs

About

An experiment in automated linting of pull requests.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 34.1%
  • CSS 31.6%
  • CoffeeScript 27.6%
  • HTML 4.2%
  • Elixir 1.8%
  • JavaScript 0.7%
0