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

@ruyadorno/git-pr

v1.2.0

Published

Interactive checkout PRs using the GitHub cli

Downloads

78

Readme

git-pr

NPM version License Join the chat at https://gitter.im/ipipeto/Lobby

Git plugin that allows you to interactively list open PRs from a GitHub repo and checkout a selected PR... AND MORE!

An iPipeTo workflow

Install

Get it with npm:

npm install -g @ruyadorno/git-pr ipt json

*Also needs the GitHub cli installed in your system

Run

In any git repo folder to list currently open PRs and checkout:

git pr

OR

bypass npm install and run it at once using npx:

npx @ruyadorno/git-pr

Features

  • Interactively listing all current open PRs on Github and:
    • Checking out from that branch
    • Showing the diff for files
    • Closing, Merging (and reopening) a PR
    • Reviewing a PR
    • View description for that open PR
  • Listing PRs open in GitHub from you current repo

Requirements

Help

Usage:
    git pr
    git pr [<cmd>]

Commands:
git pr                  Checkout from an interactive list of all open PRs
git pr clean            Cleans up after checking out a branch from a fork
git pr close            Closes the PR selected from the interactive list
git pr diff             See diff for the selected PR from an interactive list
git pr help             Shows this help message
git pr list             Only lists the current open PRs
git pr merge            Merges the selected PR
git pr push [--force]   Push commits to the branch of prev selected PR
git pr reopen           Reopens the selected closed PR
git pr review           Review the selected PR from the cli
git pr status           Status of all open PRs
git pr version          Shows current version number
git pr view             See info for the selected PR

Requirements:
This tool requires the following cli to be available in your system:
- GitHub cli (https://github.com/cli/cli#installation)
- ipt [npm i -g ipt](https://www.npmjs.com/package/ipt)
- [jq](https://jqlang.github.io/jq/) OR json [npm i -g json](https://www.npmjs.com/package/json)

Equivalent bash alias

Although less powerful, this bash alias achieves roughly the same base usage of listing and checking out a single PR (it still requires ipt or equivalent and gh to be installed in your system).

alias git-pr="gh pr list | ipt -u | cut -f 3 -d $'\t' | xargs gh pr checkout"

License

MIT © 2024 Ruy Adorno