gh-contrib-list

0.1.2 • Public • Published

travis npm Dependency Status

gh-contrib-list

A tool to generate a list of contributors from a specific range of commits

Usage:

npm install gh-contrib-list

In code:

var ghContribList = require('gh-contrib-list');
 
ghContribList(options);

Returns a Promise with an array of contributors. Each contributor has the following properties:

  • id - Github username of the contributor
  • name - Full name of the contributor
  • commitCount - Number of commits the person has contributed

Options

  • user - The user or organization (required)
  • repo - The repository name (required)
  • commit - A commit SHA to run the query from (commits including and after this one will be used) (required)
  • oauthKey - If one is provided it will be used when making Github API requests
  • to - If another commit SHA is provided here the commits used will be between the commit option and this one.
  • removeGreenkeeper - If this is set to true, any commits by Greenkeeper will be automatically removed.
  • retry - If this is set to true, the request will be retried in the event that the Github API returns a 202 status (retry momentarily).

Credit:

This script is heavily based on top-gh-contribs.

Readme

Keywords

Package Sidebar

Install

npm i gh-contrib-list

Weekly Downloads

4

Version

0.1.2

License

MIT

Last publish

Collaborators

  • austin.burdine