GitXplorerGitXplorer
d

github-metrics

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
7ca68e481314381eeea1e06f6cb105ccdebb171e

review speed

committed 2 years ago
Unverified
732f8f5bbad08992369d98b2b7994404f5339b68

v 1.0

committed 2 years ago
Unverified
64bfa268bffdb93fc8e11973b1c189dff9f9fa13

initial implementation: cycle time, time to merge, pr size, for all merged PRs in the repo

committed 2 years ago

README

The README file for this repository.

GitHub Pull Metrics

License

Python library to extract pulls from a github repository and calculate the following metrics on each pull: Cycle Time, Time to Merge, Diff Size

The data is written onto pull_requests.csv and is found in the script's directory.

Install

pip install -r requirements.txt

Setup

List the GitHub login users whose pulls we want to extract.

USERS_TO_TRACK = [
    "SOME_GITHUB_LOGIN_USER",
]

Add a GitHub token

GITHUB_API_TOKEN = "github_pat_some_token"

Add a GitHub full repo name (including organization)

REPO_NAME = "laravel/docs"

Run Script

Note: tested on python 3.8

Only extract pulls for users specified in USERS_TO_TRACK:

python main.py

Extract pulls for all users:

python main.py -a

Extract pulls for all users that were created after 2023-Jun-01.

python main.py -a -d=20230601