Skip to content
Report the most contributor in the code review.
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.babelrc
.editorconfig
.eslintrc.js
.gitignore
.npmignore
.prettierrc.json
README.md
package-lock.json
package.json
renovate.json
rollup.config.js
tsconfig.json

README.md

warsman

NPM Version CircleCI

Report the most contributor in the code review.

warsman

warsman is the silent hero.

Install

$ npm install warsman
or
$ npm install -g warsman

Usage

JavaScript API

import warsman from 'warsman'

const repo = 'facebook/react'
const token = 'XXXXXXXXXX'
const options = {
  max: 10
}

warsman(repo, token, options).then(results => {
  console.log(results)
  // [ { user: 'jaxx2104', count: 26 },
  // { user: 'foo', count: 23 },
  // { user: 'bar', count: 19 } ]
})

Command Line Interface

Table mode

$ warsman --repo facebook/react --token XXXXXXXXXX

result

┌─────────┬────────────┬───────┐
│ (index) │    user    │ count │
├─────────┼────────────┼───────┤
│    0    │ 'jaxx2104' │  26   │
│    1    │ 'foo'      │  23   │
│    2    │ 'bar'      │  19   │
└─────────┴────────────┴───────┘

Figlet mode

$ warsman --repo facebook/react --token XXXXXXXXXX --figlet Slant

result

       _                ___  _______  __ __
      (_)___ __  ___  _|__ \<  / __ \/ // /
     / / __ `/ |/_/ |/_/_/ // / / / / // /_
    / / /_/ />  <_>  </ __// / /_/ /__  __/
 __/ /\__,_/_/|_/_/|_/____/_/\____/  /_/
/___/

Options

option description
-V, --version output the version number
--u, --url GitHub API URL (default: "https://api.github.com/")
-r, --repo <account/repo> GitHub Repository
-t, --token GitHub Personal Access Token
--max GitHub Max PullRequests
--figlet figlet mode
You can’t perform that action at this time.