Giter Site home page Giter Site logo

gulp-github's People

Contributors

fabioelia avatar mikepsinn avatar zordius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

f1v mikepsinn

gulp-github's Issues

Unable to connect to Enterprise Github with 302 Redirect or getaddrinfo ENOTFOUND

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:

  • Node v0.12.7
  • Npm 3.5.3
  • Gulp 3.9.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.