gh-issues-stats
Collect statistical information about issues of a GitHub repository.
Installation
$ npm install gh-issues-stats
Usage
const ghIssueStats = ; ;
Available options:
apiUrl
: GitHub API URL, defaults tohttps://api.github.com
(you may change to point to a GitHub enterprise instance).tokens
: Array of API tokens to be used by token-dealer, defaults tonull
.concurrency
: The concurrency in which pages are requested, defaults to5
.got
Custom options to be passed to got, defaults to{ timeout: 15000, headers: { accept: 'application/vnd.github.v3+json' } }
tokenDealer
: Custom options to be passed to token-dealer, defaults to{ group: 'github' }
Tests
$ npm test$ npm test -- --watch # during development
License
Released under the MIT License.