Code Review Sync
Beginner5 min
Stay on top of code reviews by checking pending reviews, viewing PR diffs, and submitting review feedback from the CLI.
Prerequisites
- -GitHub CLI (gh) installed and authenticated
Steps
1
Check your review status across repos
See all PRs where your review is requested.
$ gh pr status
This shows PRs you created, PRs requesting your review, and PRs on your current branch.
2
View the diff of a PR
See the code changes in a pull request.
$ gh pr diff 42
3
Submit a review with comments
Approve, request changes, or comment on a PR.
$ gh pr review 42 --comment --body 'Looks good overall. One suggestion on the error handling in auth.ts.'
4
View review comments on a PR
Read all review comments and conversations.
$ gh pr view 42 --comments
Full Script
FAQ
Discussion
Loading comments...