npm install -g get-open-prsto install globally and to be able to use the keyboard shortcut anywhere.
- Get a Github personal access token here. You'll want the following permissions:
notifications, public_repo, read:org, read:packages, read:user.
- The first time you run
get-open-prs, you'll be prompted to set a default list of Github usernames and your Github personal access token. You'll be able to update this later by running
get-open-prs --configor overriding with
--tokencommand options detailed below.
- You can get the current open prs for your team by typing
get-open-prsin any directory.
- After typing the
get-open-prscommand, a prompt will appear for you to select a specific pr to review,
all open prs(opens link in github displaying all prs), or
noneto exit the flow. Once you hit enter, your default browser will open the pr.
- You'll then be given the option to continue reviewing other prs.
- Optionally, you can create an alias for
get-open-prsif that's too many letters to type out. Simply edit
~/.zprofile(if you use zsh) and add the following:
In the above,
gop is the new shorter command. This could really be anything.
||Skip Github requests and open browser with all open prs||
||Set up default Github token and usernames||
||Restrict to repos owned by specific orgs or users||
||Token. Overrides any saved default Github token||
||Usernames. Overrides any saved default usernames||
||Verbose. Print out pull request details||
Use default github and usernames configuration and get all prs
Update token or usernames default configuration
Pass in multiple usernames override
get-open-prs --usernames "user1 user2 user3 user4"
Pass in one single usernames override
get-open-prs --usernames user1
get-open-prs --usernames "user1 user2" --owners my-awesome-org