gulp-github
A gulp plugin to comment jscs/jshint/eslint issues to a github pull request.
Features
- See your CI issues of lint tools on github!
- Collect gulp-jshint results.
- Collect gulp-jscs results.
- Collect gulp-eslint results.
- Write collected info then comment on a github pull request.
- Update github pull request status based on collected info.
- A failThisTask() reporter to fail a gulp task when jscs/jshint/eslint issues found
- TODO Collect lcov result.

Installation
npm install gulp-github
Usage
var gulp = jshint = jscs = eslint = github = ; gulp; // Or, direct output your comment with same optionsgithub; // Or, direct set status to a commitgithub; // Or, create a task to reject PR with merged commitsgulp;
Options
// Required options: git_token, git_repo // refer to https://help.github.com/articles/creating-an-access-token-for-command-line-use/ git_token: 'your_github_oauth_token' // comment into this repo, this pr. git_repo: 'zordius/test' git_prid: '1' // create status to this commit, optional git_sha: 00000000 jshint_status: 'error' // Set status to error when jshint errors, optional jscs_status: 'failure' // Set git status to failure when jscs errors, optional eslint_status: 'error' // Set git status to error when eslint errors, optional // when using github enterprise, optional git_option: // refer to https://www.npmjs.com/package/github for more options host: 'github.mycorp.com' // You may require this when you using Enterprise Github pathPrefix: '/api/v3' // Provide your own jshint reporter, optional { // gulp stream file object // refer to http://jshint.com/docs/reporters/ for E structure. return 'Error in ' + Efile + '!'; } // Provide your own jscs reporter, optional { // gulp stream file object // refer to https://github.com/jscs-dev/node-jscs/wiki/Error-Filters for E structure. return 'Error in ' + Efilename + '!'; }
Check this sample gulpfile to see how to migrate this with travis CI.
Check This PR to see live demo.