Skip to content

A tool that fetches the list of reviewers for a given Ceph PR and generates `Reviewed-by:` lines by resolving names from ceph's .mailmap

Notifications You must be signed in to change notification settings

rhcs-dashboard/ceph-reviewed-by-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reviewed-by Generator for Ceph PRs

A tool that fetches the list of reviewers for a given Ceph PR and generates Reviewed-by: lines by resolving names from ceph's .mailmap.

Requirements

The full name should be exposed publically in github and partially matches the name in the ceph's mailmap for it to fetch the email.

Install dependencies:

pip install -r requirements.txt

For fedora, you will also have to install xclip

sudo dnf install -y xclip

Usage

python3 get_reviewers.py <PR_NUMBER>

The generated text will be copied to the clipboard by default so you just have to paste it in the merge comment box.

If you don't want to hit the ratelimit of github (60 req per hour) you can store your token in env like

export GITHUB_TOKEN=ghp_your_token_here
python3 get_reviewers.py <PR_NUMBER>

About

A tool that fetches the list of reviewers for a given Ceph PR and generates `Reviewed-by:` lines by resolving names from ceph's .mailmap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages