How to approve a pull request on GitHub
Approve a GitHub pull request from the Files changed tab with Review changes, from the GitHub CLI with gh pr review --approve, or from the notch with a confirmation step.
On this page
To approve a pull request on GitHub, open it, go to the Files changed tab, click the button to review changes, choose Approve, add an optional comment and submit. From Terminal, gh pr review --approve does the same. If you've already read the code, OneNotch lets you approve from the notch with a two-step confirmation so it can't happen by accident.
On github.com
- Open the pull request.
- Go to the Files changed tab and read the changes. Leave line comments as you go if you have any.
- Click the review button (labelled Review changes or Submit review, depending on GitHub's current interface).
- Choose Approve.
- Optionally write a summary comment, then submit.
Your approval appears on the pull request's conversation, and its review status updates. If branch protection requires approvals, yours counts toward the total. See required reviews and branch protection.
Approve, comment or request changes?
| Choice | Use when |
|---|---|
| Approve | The change is good to merge, possibly with minor optional suggestions |
| Comment | You have questions or feedback but aren't blocking or approving |
| Request changes | Something must change before it merges |
Be clear about which suggestions are required and which are optional. "Approve with nits" is a common and useful pattern for small things the author can take or leave.
With the GitHub CLI
gh pr review 123 --approve
Add --body "Looks good" for a comment. Without a number, it approves the pull request for the current branch. See GitHub's CLI documentation.
From the notch
OneNotch's GitHub screen lists pull requests waiting for your review. When you've reviewed one and it's ready:
- Select it on the To review tab.
- Click Approve, or press A. The button changes to Confirm approval.
- Click again, or press A again, to send it.
Esc cancels before the second step. The approval is sent once, through gh pr review --approve, and never retried automatically; if it fails, OneNotch tells you why. Approval isn't offered for drafts or for your own pull requests (those are on the Your PRs tab).
OneNotch is for the approval itself, not the review. Press V to open the pull request's changes on GitHub, read them there, then approve from wherever you are. To comment or request changes, use GitHub. See how to see pull requests waiting for your review.
Approvals and new commits
What happens to an approval when the author pushes more commits depends on the repository's settings. Some repositories dismiss existing approvals automatically on new commits, so a reviewer has to look again; others keep them. If yours dismisses them, expect to re-approve after small follow-up changes, and keep follow-ups focused so re-review is quick. OneNotch's review list shows the current approval count and "Approved" or "Changes requested" marks, so you can see where a pull request stands.
Before you approve
Approval says "I'm comfortable with this merging". A quick checklist:
- The change does what the description says.
- Checks pass, or failures are understood. In OneNotch, C shows the checks.
- Tests cover the change.
- Nothing risky, like secrets, data migrations or permission changes, slipped in.
See a pull request review checklist.
FAQs
Can I approve my own pull request?
No. GitHub doesn't let authors approve their own pull requests.
Can I undo an approval?
You can dismiss your review on GitHub, or submit a new review requesting changes. Repository settings may also dismiss approvals when new commits are pushed.
Why can't I approve a draft in OneNotch?
Drafts aren't ready for review. OneNotch only offers approval for non-draft pull requests on the To review tab.
Does approving merge the pull request?
No. Merging is a separate step on GitHub.