Get reviewers that have signed off on node core PR
$ npm install [-g] core-get-reviewers
Note: requires Node.js v4+
const GetReviewers = require('core-get-reviewers')
const cgr = new GetReviewers({
token: '<github token>'
})
cgr.fetchPR(3102, function(err, obj) {
if (err) throw err
console.log(cgr.generate(3102, obj))
// =>
// => PR-URL: https://github.com/nodejs/node/pull/3102
// => Reviewed-By: XXX
// => Reviewed-By: XXX
// => Reviewed-By: XXX
})
// or to just get a reviewer from a username
// note: case is sensitive here
cgr.getReviewer('evanlucas')
// => 'Evan Lucas <evanlucas@me.com>'
$ core-get-reviewers 3102
$ npm run check
Evan Lucas
MIT (See LICENSE
for more info)