octokit / octokit.js

The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.
MIT License
7.03k stars 1.03k forks source link

repos.getCommits( { user: 'xxxx', repo: 'xxxxx' }) -> NOT FOUND #78

Closed d1b1 closed 8 years ago

d1b1 commented 11 years ago

I am having an issue getting the commits for a private repo. Some work and some do not. Any help would be great. This repos I am trying access are private. The OAuth has a scope: user, repo etc.

var github = new githubAPI({ version: "3.0.0" });

github.authenticate({ type: "oauth", token: req.session.user.access_token });

var since = moment().subtract('months', 24).format('YYYY-MM-DDTHH:mm:ssZ');

github.repos.getCommits({ user: 'd1b1', 'until': since, repo: 'composer' }, function(err, data) {

console.log(err, data);

res.send(data, 200);

});

kaizensoze commented 8 years ago

Should be fixed: https://mikedeboer.github.io/node-github/#api-repos-getCommits