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

Exploit Development : Kolibri v2.0 HTTP Server with EggHunter

Aerospike 101

Functions ()

Managing requirements in agile project

On the Go!

GetX in Flutter

Supercomputers, Cluster systems and GRID-systems

Sourcebot: Setting up and Configuring Sourcebot

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

On The Value Of Tactics With Powershells Multiple Find And Replace Oneliner

Force merge in Git

Abstract Factory in Python — SS Blog

Abstract Factory in Python — SS Blog

Access Error Number Message Lookup