The initiator of a pull request may give the maintainer the ability to edit the pull request.
For any given pull request, how can we tell if that ability has been granted? (preferably I would like to know via the browser, but cli is also fine)
Here's the specifics of the case I'm trying to solve:
I have lodged a ticket with github support and will update the question with anything I find.
As a last resort, I will try to solve by creating dummy github accounts, make two identical PRs to two identical repos (one with edit permissions granted and another without), to see if I can spot the difference). If anyone does this first, please answer below.
To edit a pull request, select the pull request on the Pull requests page, go to its detail page and click "Edit". The target branch (the base branch) and the pull request branch (the branch that will be merged) cannot be changed.
To check out a pull request locally, use the gh pr checkout subcommand. Replace pull-request with the number, URL, or head branch of the pull request.
The current way to update a pull request is to click on the “Edit” button along the other pull request action buttons. This will bring you to the update pull request page where you can make changes to the title, description, reviewers and specify whether to close the branch after the pull request has been merged.
From github support:
Unfortunately there isn't a filter to see which pull requests have allowed edits from maintainers.
Currently, the only way you will know if the pull request author has selected
Allow Edits
from Maintainers is if you try to edit files from the pull request.For example, if you select a pull request from the fork parent's repository, there will be Files Changed tab. See screenshot below - if you see the Edit file button greyed out, it means the user has not allowed edits from maintainers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With