Skip to content

junkofujiwara/pr-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Pull Request Analysis

Introduction

This script generates csv files with the following information about pull requests in a GitHub repository:

  • Name of repository
  • PR Number
  • PR Title
  • PR State
  • PR User
  • PR Created At
  • PR Updated At
  • PR Closed At
  • PR Merged At

Requirements

  • Python 3.6 or higher
  • GitHub Personal Access Token
    • "Metadata" repository permissions (read)
    • "Pull requests" repository permissions (read)
  • pip install -r requirements.txt

Usage

For all repositories in an organization
python pr.py -o <organization> -t <github_token>

For only one repository
python pr.py -o <organization> -r <repository> -t <github_token>

Reference

https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#list-pull-requests https://docs.github.com/en/enterprise-cloud@latest/rest/repos/repos?apiVersion=2022-11-28

Samples

About

GitHub Pull Requests Analaysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages