GitHub: approving or requesting changes is limited in a public repository
By default, in public repositories, any user can submit reviews that approve or request changes to a pull request. When code review limits are turned on, anyone can still comment on pull requests in the public repository, but only people with read access or higher can approve pull requests or request changes (GitHub's code review limits for a repository, checked October 27, 2026).
public repository, default anyone can approve or request changes
with code review limits anyone can comment
approve, request changes: explicit read access or higher
organization setting overrides the limits of its repositories
counted toward required reviews a separate rule
Who can do what
- Comments stay open: with the limits on, anyone can still comment on pull requests in the public repository.
- Approvals and requests for changes need explicit access: the repository setting is named Limit to users explicitly granted read or higher access; the organization documentation says only people with explicit access to a repository can approve a pull request or request changes.
- The organization wins: turning the limits on for an organization overrides any limits set on its individual repositories (GitHub's code review limits for an organization).
- Not the same as counting: whether an approval counts toward the reviews a branch requires is a separate rule (see reviews refused or not counted).
- Who sets it: repository administrators can limit who approves or requests changes in a public repository, and organization owners can do it for the organization's repositories (GitHub's managing pull request reviews in your repository and in your organization).
- Organization moderators: they can block and unblock users from the organization and manage interaction limits for the organization and its repositories. Being a moderator gives no other abilities, so someone with read access to a repository does not gain write access (GitHub's managing moderators in your organization).
If your review may be refused: Pull Request Inbox for GitHub, a plugin for JetBrains IDEs, offers Approve and Request changes without guessing your access, shows GitHub's answer when it refuses, and copies the text of a refused request for changes to the clipboard so it is not lost.
Where to set it
- A repository: Settings, under Access click Moderation options, then Code review limits, and select or deselect Limit to users explicitly granted read or higher access (GitHub's enabling code review limits).
- An organization: its Settings, in the Access section click Moderation, then Code review limits, and choose Limit review on all repositories or Remove review limits from all repositories (GitHub's managing code review limits).
What to do
- You want to approve: ask the maintainers for explicit access to the repository; until then, leave your review as a comment.
- Your own latest review: in GraphQL,
viewerLatestReviewon the pull request is the latest review given from your account, andviewerLatestReviewRequestthe review request made for you, as inpullRequest(number: N) { viewerLatestReview { state } viewerLatestReviewRequest { asCodeOwner } }(GitHub's GraphQL reference, PullRequest). - You maintain the repository: check the setting on the repository and, when the repository belongs to an organization, on the organization, whose setting overrides it.
- Setting the limit in GraphQL:
setRepositoryInteractionLimit(input: { repositoryId: "ID", limit: COLLABORATORS_ONLY, expiry: ONE_WEEK })sets an interaction limit for a repository, withexpiryONE_DAY,THREE_DAYS,ONE_WEEK,ONE_MONTHorSIX_MONTHS.setOrganizationInteractionLimitsets one for an organization's public repositories, andsetUserInteractionLimitfor a user's public repositories (GitHub's GraphQL reference, setRepositoryInteractionLimit and RepositoryInteractionLimitExpiry). - A reviewer's access through REST:
GET /repos/OWNER/REPO/collaborators/USERNAMEanswers 204 for a collaborator and needs push access to the repository..../collaborators/USERNAME/permissiongivespermissionas admin, write, read or none (maintain counts as write, triage as read) androle_name: the highest role from all grants, with no way to tell an organization grant from a repository grant (GitHub's get repository permissions for a user). - The reviewer's association in GraphQL: in
reviews(last: 20) { nodes { author { login } authorAssociation state } }on a pull request,authorAssociationis each reviewer's association with the repository:OWNER,MEMBERof the organization that owns it,COLLABORATORinvited to collaborate,CONTRIBUTORwho has committed to it before,FIRST_TIME_CONTRIBUTORwho has not,FIRST_TIMERwho has not committed to GitHub before,MANNEQUINfor a placeholder of an unclaimed user, orNONE(GitHub's GraphQL reference, CommentAuthorAssociation). - You cannot comment either: that is not a code review limit. A temporary interaction limit restricts certain users from commenting, opening issues, creating pull requests, reacting with emojis, editing existing comments and editing titles, for 24 hours, 3 days, 1 week, 1 month or 6 months. "Limit to existing users" covers accounts less than 24 hours old with no prior contributions that are not collaborators, "Limit to prior contributors" users who have not contributed to the default branch and are not collaborators, and "Limit to repository collaborators" users without write access (GitHub's about temporary interaction limits; see GitHub pull requests turned off or limited in a repository).
- The interaction limit in GraphQL:
repository(owner: "OWNER", name: "REPO") { interactionAbility { limit origin expiresAt } }gives the currentlimit(NO_LIMITwhen none is enabled), itsorigin, which says whether it is configured at theREPOSITORY,ORGANIZATIONorUSERlevel, andexpiresAt, the time it expires. Organizations and users have the sameinteractionAbilityfield (GitHub's GraphQL reference, RepositoryInteractionAbility and RepositoryInteractionLimitOrigin). - A locked conversation: while a conversation is locked, only people with moderate or write access and the repository's owners and collaborators can add, hide and delete comments, and reactions are disabled for everyone. Conversations in archived repositories are locked automatically, and
is:locked archived:falsefinds the locked ones in repositories that are not archived (GitHub's locking conversations).
In IntelliJ IDEA: Approve is offered anyway, and GitHub refuses it
Checked in the IntelliJ IDEA source on November 2, 2026: GHPRSubmitReviewPopup.kt, GHPRSubmitReviewViewModel.kt, GithubBundle.properties, CollaborationToolsBundle.properties.
When you submit a review on a pull request someone else opened, the IDE offers:
Approve
Request Changes
Comment
The only thing it checks before offering Approve and Request Changes is whether you opened the pull request. It does not check code review limits or your access to the repository, so with the limits on and no explicit access, both buttons are still there. When GitHub refuses the review, the popup reads "Failed to submit review" with GitHub's message, and what you typed stays (GitHub: why the review was refused, or the approval does not count).
Comment, described as "Submit general feedback without explicit approval", is the one that stays open to anyone under the limits.
GitHub pull requests in IntelliJ IDEA
Pull Request Inbox for GitHub, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a pull request's reviews, checks and conversations next to the diff, and merges it with the methods the target branch allows. It offers Approve and Request changes without guessing your access to the repository; when GitHub refuses either, it shows GitHub's answer, and the text of a refused request for changes is copied to the clipboard so it is not lost. Comments on the conversation and on lines are separate from these reviews. The review inbox, diffs and conversations are free; approving, commenting, resolving and merging 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: GitHub merge refused (405, 409) · GitHub review refused (422) · GitHub search 422 "Validation Failed" · "Resource not accessible by personal access token" · 401 "Bad credentials" · "Resource protected by organization SAML enforcement" · "API rate limit exceeded" · GitHub diff 406 "too_large", 3,000 files · GitHub line comment 422 "must be part of the diff" · GitHub branch update refused (422) · GitHub pull request not created (422, 403) · GitHub auto-merge refused · GitHub draft, ready for review or close refused · GitHub conversation not resolved · GitHub checks not shown (check runs 403) · GitHub file contents not read · GitHub compare refused (404, 422) · GitHub comment or reply refused (403 locked, archived) · GitHub merge method not allowed (405) · GitHub branch not found (404, 301) · GitHub Enterprise Server not reached · GitHub review request not shown · GitHub pull request list incomplete · GitHub 404 Not Found, renamed repositories (301, 307) · GitHub line comment outdated or not on the diff · GitHub pull requests not updating, notifications late · GitHub suggested change cannot be applied · GitHub required check stuck at "Expected" · GitHub code owner review required · GitHub merge blocked by unresolved conversations · GitHub merge blocked by unsigned commits · GitHub branch that merges through a merge queue · GitHub merge waiting for an approval of the most recent push · GitHub merge waiting for code scanning results · GitHub merge waiting for code quality results · GitHub merge blocked by a code coverage threshold · GitHub merge blocked by license compliance results · GitHub branch locked or its updates restricted · GitHub branch not deleted after merging · GitHub merge waiting for a team's approval (Required reviewers) · GitHub merge blocked by secret scanning alerts · GitHub stacked pull request not merging · GitHub push blocked by push rules · GitHub merge blocked by commit metadata rules · GitHub force push blocked · GitHub issue not closed by a merged pull request · GitHub pull request not checked out locally · GitHub pull request has merge conflicts · GitHub changes requested and dismissing a review · GitHub co-author not credited for a commit · GitHub dependency review check failed · GitHub Dependabot not rebasing its pull request · GitHub fork not syncing with upstream · GitHub pull request base branch not changing · GitHub pull request not reverting · GitHub pull request template not showing · GitHub pull request labels or assignees not added · GitHub pull request not closing or reopening · GitHub push blocked by push protection · GitHub pull request comment hidden · GitHub pull request blocked until deployments succeed · GitHub team review request replaced by members · GitHub pull request file no longer marked Viewed · GitHub pull request marked merged without being merged · GitHub Copilot review does not count as an approval · GitHub checks not running on a pull request a workflow created · GitHub Update branch button not shown on a pull request · GitHub checks failing on a Dependabot pull request · GitHub checks failing on a pull request from a fork · GitHub checks skipped by [skip ci] in a commit message · GitHub checks gone after the retention period · GitHub pull requests turned off or limited in a repository · GitHub checks run on every pull request in a stack · GitHub pull request showing commits already squash merged · GitHub pull request not showing a file diff · GitHub push to a pull request branch from a fork refused · GitHub check cancelled on a pull request · GitHub Rebase and merge not available · GitHub merge commit message not what you expected · GitHub pull request shows every line changed · GitHub API request timed out · GitHub pull request image or document diff not shown · GitHub review request refused (422) · GitHub pull request from Copilot: checks not running, approval not counted · GitHub push refused: GH006 and GH013 on a protected branch · GitHub "At least 1 approving review is required", approvals that do not count · GitHub pull request plugins for IntelliJ IDEA, compared · 日本語