How to List PR Reviews Waiting For Me in GitHub CLI… and approve them all with a couple of commands.

1. notes

  • List your PR IDs
▶ gh pr list -S "user-review-requested:@me"
  • Loop through IDs and approve them with
▶ $a = 3248,3247,3246,2934
▶ foreach($i in $a) {gh pr review $i --approve}
OR
▶ $a | % {gh pr review $_ --approve}

2. links

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

5 Best WordPress Hosting Control Panels for Cloud Hosting

19coders

How we roll code at Shedul

Aldelo Tokenized Payments

Reimplementing the Inference Algorithms in Stan

Techniques for creative coding

The art of symbiotic hardware and software engineering

Lets Grow More Internship Experience

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (Snowplow Analytics) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

More from Medium

Basic Git cheat sheet (yet another)

Github

Code School Grad! What’s next?

Developing In a Windows Environment for Beginners: Part 2

Git Basics: