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.
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.txtFor fedora, you will also have to install xclip
sudo dnf install -y xclippython3 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>