diff --git a/README.md b/README.md index 50a7719..2d8097b 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ working across different projects via [VisualMode](https://www.visualmode.dev/). For a steady stream of TILs, [sign up for my newsletter](https://visualmode.kit.com/newsletter). -_1778 TILs and counting..._ +_1779 TILs and counting..._ See some of the other learning resources I work on: @@ -464,6 +464,7 @@ If you've learned something here, support my efforts writing daily TILs by ### GitHub - [Access Your GitHub Profile Photo](github/access-your-github-profile-photo.md) +- [List PRs Awaiting Your Review](github/list-prs-awaiting-your-review.md) - [Open A PR To An Unforked Repo](github/open-a-pr-to-an-unforked-repo.md) - [Target Another Repo When Creating A PR](github/target-another-repo-when-creating-a-pr.md) - [Tell gh What The Default Repo Is](github/tell-gh-what-the-default-repo-is.md) diff --git a/github/list-prs-awaiting-your-review.md b/github/list-prs-awaiting-your-review.md new file mode 100644 index 0000000..e58eb83 --- /dev/null +++ b/github/list-prs-awaiting-your-review.md @@ -0,0 +1,31 @@ +# List PRs Awaiting Your Review + +If you work on a software team or steward an open-source project, then there are +likely some open PRs that you've been tagged to review. I am usually able to +catch most review requests as they come up either from the GitHub email +notifications or by keeping an eye on the PRs tab of active projects. Sometimes +I get consumed by a task and something slips through the cracks. + +There are a couple other ways to quickly check if anything is waiting on my +review. + +From the web UI I can visit the following URL which will show all PRs across all +projects where my review has been requested: + +[https://github.com/pulls/review-requested](https://github.com/pulls/review-requested) + +The GitHub CLI (`gh`) can do the same and I can do it right from the terminal +instead of navigating several clicks within GitHub's web UI. + +```bash +$ gh search prs --review-requested=@me --state=open +``` + +That too will list PRs across all projects that are open and awaiting my review. + +If that one ends up being a little too noisy, you can also use `gh` to _list_ +just PRs for the current project: + +```bash +gh pr list --search "review-requested:@me" +```