pksunkara / octonode

github api v3 in nodejs
MIT License
1.19k stars 237 forks source link

Is not listing branches from my private repository #313

Closed GlauberF closed 6 years ago

GlauberF commented 6 years ago

code:

captura de tela de 2018-06-13 08-40-10

return: null

captura de tela de 2018-06-13 08-40-30

if the way I'm doing is wrong, leave the comments the right way :) I will replicate in my code

pksunkara commented 6 years ago

The first argument is the error. You need to do something like this:

ghrepo.branches( (err, rep) => {
  console.log(rep);
});