zordius / gulp-github Goto Github PK
View Code? Open in Web Editor NEWA gulp plugin to comment jscs/jshint/eslint issues to a github pull request.
Home Page: https://www.npmjs.com/package/gulp-github
License: Other
A gulp plugin to comment jscs/jshint/eslint issues to a github pull request.
Home Page: https://www.npmjs.com/package/gulp-github
License: Other
I'm unable to use this with my enterprise github instance.
Here are my configs:
var goptions = {
git_token: '<mytoken>',
git_repo: 'owner/myrepo',
git_prid: 1,
jshint_status: 'error', // Set status to error when jshint errors
jscs_status: 'failure', // Set status to failure when jscs errors
git_option: {
version: '3.0.0',
protocol: 'https',
host: 'github.mydomain.net',
debug: true
}
};
gulp.task('postcomment', function () {
github.commentToPR('Please ignore this comment', goptions,
function(s, rep) {
console.log('reply from request', s, rep);
}
);
});
This does not use the token at all, returning reply from request null <html><body>You are being <a href="...">redirected</a>.</body></html>
In another place where I interact with the Github API I actually use github.mydomain.net/api/v3/
. If I try to use this I get
[error] getaddrinfo ENOTFOUND github.mydomain.net/api/v3/ null <myusername>
reply from request { [Error: getaddrinfo ENOTFOUND github.mydomain.net/api/v3/]
defaultMessage: 'Internal Server Error',
message: 'getaddrinfo ENOTFOUND github.mydomain.net/api/v3/',
code: '500' } undefined
Running the exact same request through PostMan works perfectly. I'm using:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.