Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to tell if a pull request has given the maintainer the ability to edit the pull request?

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)

For clarity

Here's the specifics of the case I'm trying to solve:

  • I created a repo with some code
  • Someone forked it, made changes, made a PR
  • I want to make some adjustments before merging their PR
  • As maintainer, I may or may not have permission to edit the PR before merging
  • How do I find out whether or not I have been granted this permission?

UPDATE

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.

like image 882
stevec Avatar asked Feb 03 '20 05:02

stevec


People also ask

Can pull request be edited?

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.

How do you check a pull request?

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.

How do I edit after a 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.


1 Answers

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.

enter image description here

like image 55
stevec Avatar answered Nov 12 '22 14:11

stevec