Jesús Amieiro

Using the GitHub CLI to review PR

The GitHub CLI has a lot of interesting functionalities. If you usually review PR in your local machine, it has a command to switch your local branch to the PR branch, so you can start reviewing it in a few seconds.

Let’s see this with an example. If you want to review this PR (#1497), you can switch to this PR with this command:

gh pr checkout 1497

Where:

Before you start using this command, you need to:

Exit mobile version