Skip to content

How to Review Open Source Pull Requests

Natalie Pina edited this page Mar 10, 2023 · 2 revisions

Reviewing open-source pull requests is simple using gh pr checkout.

gh pr checkout

You can check out any pull request, including from forks, in a repository using its pull request number.

You must first install the gh cli. For mac users with homebrew, you can run brew install gh.

Check out a pull request in git:

gh pr checkout {<number> | <url> | <branch>} [flags]

For example: gh pr checkout 937

You can reference the pull request number in the title, it will be the number following the hash #937.