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

Pavol Kutaj
Jan 13, 2022

--

The aim of this page📝 is to find all PR waiting for my review via GH CLI and, additionally, just approve them all. Using Powershell Core.

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

--

--

No responses yet