Skip to content

evanlucas/core-get-reviewers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

core-get-reviewers

Build Status Coverage Status

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 <evanlucas@me.com>'

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)

About

Get reviewers for node core PR

Resources

License

Stars

Watchers

Forks

Packages

No packages published