1.3.1 • Published 2 years ago

code-review-leaderboard v1.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

code-review-leaderboard

Build Status codecov semantic-release

code-review-leaderboard scrapes data from all pull requests across every repository within your organisation. This data is processed and consolidated into a leaderboard. Find out who is doing the most code reviews at your organisation 🥇

Currently supports the following platforms:

  • Azure Repos
  • Github
  • Gitlab

Running from the command line

Installing

Install code-review-leaderboard globally using npm:

npm install -g code-review-leaderboard

Setting up your configuration and running locally

You can set up your configuration from the command line using:

code-review-leaderboard

It will then fetch the pull request data from the selected organisations, using the provided credentials. If successful, it will print out a leaderboard that looks like this:

Example results

Demo

Video demo

Running in TypeScript

Installing

Install the project using:

git clone https://github.com/lachiejames/code-review-leaderboard.git

Setting up your configuration

Open code-review-leaderboard.config.js from the root directory, and populate the following options:

PropertyDescriptionExample
startDateInclude pull requests updated after this dateDate("2021-05-01")
endDateInclude pull requests updated before this dateDate("2021-05-07")
azure.enabledInclude pull requests from Azuretrue
azure.baseUrlThe Azure home page for your organisation"https://dev.azure.com/Example"
azure.personalAccessTokenAuthenticates HTTP requests to Azure"3Ccz4G6QPilk"
github.enabledInclude pull requests from Githubtrue
github.baseUrlThe Github home page for your organisation"https://github.com/Example"
github.personalAccessTokenAuthenticates HTTP requests to Github"3Ccz4G6QPilk"
gitlab.enabledInclude pull requests from Gitlabfalse
gitlab.baseUrlThe Gitlab home page for your organisation"https://gitlab.example.com/"
gitlab.personalAccessTokenAuthenticates HTTP requests to Gitlab"Hf4sXcfn7M69"
httpTimeoutInMSMax time to wait for a HTTP request to complete5000

Running locally

Installing dependencies:

yarn

Compiling to JavaScript:

yarn build

Running with Node:

yarn start

Running tests:

yarn test

More info

Check out this blog post that describes code-review-leaderboard in further detail: https://lachiejames.com/spice-up-code-reviews-at-your-organisation-with-a-leaderboard/

1.3.1

2 years ago

1.3.0

2 years ago

1.2.16

2 years ago

1.2.17

2 years ago

1.2.14

3 years ago

1.2.15

3 years ago

1.2.12

3 years ago

1.2.13

3 years ago

1.2.10

3 years ago

1.2.11

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago