Found yourself swamped by a bunch of old PRs that are assigned/review-requested to your github user?
This script helps remove a given user (yourself) from all OPEN PRs that the user is assigned to or is in the review-requested.
Just a cli script that you need the project repo (full url, or github-like url ex: <org>/<project>
) and a github username.
The script will fetch all open PRs for the project and searches for returned PRs that involve the target user. It then edits
the PR to remove the target user as an assignee and reviewer.
EXAMPLE USEAGE:
./gh-pr-cleanup.js facebook/react zucksucks