Skip to content

Small Python script to be able to see the average time that it takes for each user to get PR's approved

Notifications You must be signed in to change notification settings

m-sanchez-dev/github-average-review-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Pull Request Average Review Time

This Python script fetches and analyzes GitHub pull requests to determine the average time it takes each user to get an approval.

Table of Contents

Prerequisites

  • Python 3
  • GitHub Personal Access Token

Installation

  1. Clone the repository:
git clone https://github.com/m-sanchez-dev/github-average-review-time.git
cd github-average-review-time
  1. Install dependencies:
pip install -r requirements.txt

Usage

Run the main script to fetch and analyze pull request statistics:

python average-time.py

Configuration

Before running the script, ensure you set the required environment variables:

GITHUB_ACCESS_TOKEN: Your GitHub Personal Access Token. GITHUB_REPO_OWNER: Owner of the GitHub repository. GITHUB_REPO_NAME: Name of the GitHub repository. LATEST_DATE: The latest date to consider for filtering old pull requests.

export GITHUB_ACCESS_TOKEN="your-token"
export GITHUB_REPO_OWNER="your-username"
export GITHUB_REPO_NAME="your-repo"
export LATEST_DATE="2023-01-01"

About

Small Python script to be able to see the average time that it takes for each user to get PR's approved

Topics

Resources

Stars

Watchers

Forks

Languages