npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

get-open-prs

v2.2.9

Published

Get open PRs for your team

Downloads

46

Readme

get-open-prs

CircleCI nycrc config on GitHub node-current

Installation

  1. npm install -g get-open-prs to install globally and to be able to use the keyboard shortcut anywhere.
  2. Get a Github personal access token here. You'll want the following permissions: notifications, public_repo, read:org, read:packages, read:user.
  3. 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 --config or overriding with --usernames or --token command options detailed below.

Instructions

  • You can get the current open prs for your team by typing get-open-prs in any directory.
  • After typing the get-open-prs command, a prompt will appear for you to select a specific pr to review, all open prs (opens link in github displaying all prs), or none to 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-prs if that's too many letters to type out. Simply edit ~/.bash_profile or ~/.zprofile (if you use zsh) and add the following:
alias gop="get-open-prs"

In the above, gop is the new shorter command. This could really be anything.

Options

|Option|Description|Default|Required| |----|---|---|---| |-a, --all|Skip Github requests and open browser with all open prs|null|false| |-c, --config|Set up default Github token and usernames|null|false| |-o, --owners|Restrict to repos owned by specific orgs or users|null|false| |-t, --token|Token. Overrides any saved default Github token|config or null|false| |-u, --usernames|Usernames. Overrides any saved default usernames| config or null|false| |-v, --verbose|Verbose. Print out pull request details|false|false|

Examples

Use default github and usernames configuration and get all prs

get-open-prs

Update token or usernames default configuration

get-open-prs --config

Pass in multiple usernames override

get-open-prs --usernames "user1 user2 user3 user4"

Pass in one single usernames override

get-open-prs --usernames user1

Go nuts

get-open-prs --usernames "user1 user2" --owners my-awesome-org 

Screenshot

screenshot