node-github-client
github api for node.js
Features
- authenticate via oauth token
- get pull requests (all pages!)
- get comments (all pages!)
Getting Started
npm install node-github-client
example:
var GithubClient = require('node-github-client');
var client = new GithubClient();
client.authenticate('<github-username>', '<githu-personal-token>');
client.getPullRequests('organization/repo-name', function(err, listOfPulls) {
if (err) {
console.error(err);
return;
}
console.log(JSON.stringify(listOfPulls));
});