core-get-reviewers
v3.1.12
Published
Get reviewers that have signed off on node core PR
Downloads
41
Readme
core-get-reviewers
Get reviewers that have signed off on node core PR
Install
$ npm install [-g] core-get-reviewers
Note: requires Node.js v4+
Usage
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 <[email protected]>'
CLI Usage
$ core-get-reviewers 3102
Script to check for added collaborators
$ npm run check
Author
Evan Lucas
License
MIT (See LICENSE
for more info)