is there a way to allow the reviewer to edit the pr?
- User
is there a way to allow the reviewer to edit the pr?
- Assistant
Yes — in GitHub, when you open a pull request, there’s an option to allow others (including reviewers) to directly commit changes to your branch. Here’s how it works:
When opening the PR: On the pull request creation page, under the description box, there’s a checkbox labeled “Allow edits by maintainers” (for forks) or “Allow changes from contributors” (if it’s in the same repo). Make sure this is checked.
If the PR is already open: You can still enable it afterward:
Go to the PR page.
On the right sidebar, look for “Allow edits by maintainers” and check the box.
Reviewers who have write access to the repo (or maintainers, if it’s from a fork) can now push commits directly to your branch.
⚠️ Important:
The reviewer must have the necessary permissions (write access or above).
If the branch is protected with certain rules (like “Require PR reviews before merging” with no direct pushes), they may still not be able to push changes directly.
If you want, I can also explain a workaround for giving a specific reviewer temporary branch access without making them a repo maintainer. That’s useful if you want to be very controlled about it. Do you want me to include that method?
- User
the pr is already exists. what can I do?
- Assistant
If the pull request already exists, you can still allow the reviewer to make edits — but it depends on whether it’s from a fork or from a branch in the same repository. Case 1 – PR from a fork (most common in open source)
Go to the PR page on GitHub.
Look at the right sidebar (under “Reviewers”, “Labels”, etc.).
Find the checkbox "Allow edits by maintainers".
Make sure it’s checked — this lets anyone with write access to the target repo (including your reviewer if they are a maintainer) push commits to your fork branch.
Case 2 – PR from a branch in the same repo
Reviewers can already push to that branch if they have write access.
If they can’t, you’ll need to either:
Give them write access to the repo temporarily.
Or loosen branch protection rules (Settings → Branches → Edit rules → allow push access for them).
If the reviewer doesn’t have repo write access at all
You can add them as a collaborator to your fork or repository and grant write access, then they can push to your branch directly.
Alternatively, they can create a PR into your branch with their edits.
If you tell me whether this PR is from your fork or a branch in the same repo, I can give you the exact steps for your situation. Which is it in your case?
- User
he tried case 1, because this is a fork, but there is no such checkbox
- Assistant
Got it — if this is a fork and there’s no “Allow edits by maintainers” checkbox on the PR, that usually means one of these is true:
The branch is on your fork but your fork’s repository is private and the main repo is public → GitHub disables that option.
The PR’s source branch is from another fork (e.g., not yours, but you forked someone else’s fork) — only the PR author sees the checkbox.
The PR was created by someone else, so you can’t give edit permissions — only the person who opened the PR can.
How to fix it in your case Since you own the fork and opened the PR:
Go to your fork’s Settings → Collaborators.
Add the reviewer’s GitHub username with Write access.
They will then be able to fetch your fork, check out your PR branch, and push changes directly.
Alternatively, if you don’t want to give them write access to your fork:
Ask them to make a PR into your PR branch. They can do this by:
Forking your fork.
Creating a branch with their changes.
Opening a PR targeting your branch on your fork.
If you want, I can walk you through the quickest way to add the reviewer as a collaborator so they can just edit the PR directly — that’s usually the least painful option. Do you want me to give you those step-by-step?