Lesstep
GitHub · pull requests · Checked November 22, 2026

How to approve a pull request on GitHub

Open the pull request, click Files changed, click Review changes, select Approve and click Submit review. From a terminal, run gh pr review NUMBER --approve. You cannot approve your own pull request, and an approval only counts toward a required review if it comes from a person with the right access and is not dismissed as stale.

On github.com

From GitHub's Reviewing proposed changes in a pull request and Approving a pull request with required reviews:

  1. Open the pull request and click Files changed.
  2. Look through the changes. You can comment on lines or on whole files, and select Viewed in a file's header when you are done with it.
  3. Above the changed code, click Review changes.
  4. Type a comment that summarizes your feedback.
  5. Select Approve. The other choices are Comment (general feedback) and Request changes.
  6. Click Submit review.

Pull Request Inbox for GitHub, a plugin for JetBrains IDEs, lists the pull requests waiting for your review across repositories and organizations, and with Pro lets you approve from the IDE.

With the GitHub CLI

From the gh pr review manual, the command takes a pull request number, URL or branch, and without one it reviews the pull request of the current branch:

gh pr review NUMBER --approve -b "Looks good to me"

To approve a pull request in another repository, add -R OWNER/REPO. -F FILE reads the review body from a file, and -r and -c request changes or comment instead.

With the REST API

From GitHub's Create a review for a pull request, send event as APPROVE (the other values are REQUEST_CHANGES and COMMENT):

curl -X POST \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  https://api.github.com/repos/OWNER/REPO/pulls/PULL_NUMBER/reviews \
  -d '{"event":"APPROVE","body":"Looks good to me"}'

A fine-grained token needs the Pull requests permission with write access (GitHub's permissions required for fine-grained personal access tokens). More in token permissions to review, comment on and merge pull requests.

Who can approve

Why an approval may not be enough

From GitHub's About protected branches, a rule can add conditions:

A pending review

GitHub says that before you submit a review, your line comments are pending and only visible to you, and that you can edit them until you submit. Pending comments are not an approval. Click Review changes, choose Approve and click Submit review to send them together with the approval. To cancel a pending review and its comments, click Submit review, then Discard review. Through the API, leaving event blank creates a review in the PENDING state, which is not submitted until you submit it. If GitHub says you already have a pending review, see review refused.

Approving from the IDE

Pull Request Inbox for GitHub, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows the pull requests waiting for your review across repositories and organizations, with diffs, viewed marks, conversations, checks and merge checks that say what blocks the merge. All of that is free. Approving or requesting changes with a comment, commenting, replying, resolving and merging (also auto-merge) in the IDE are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

GitHub is a trademark of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitHub, Inc. or JetBrains.

More: Take back an approval · Review required, approvals that do not count · Approval of the most recent reviewable push · Code owner review required · Review refused · Changes requested · Waiting for a team's approval · Copilot review not counted · Token permissions for pull requests · 日本語