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

夙愿已清 提交于 2020-03-05 06:05:13

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/60033729/how-to-tell-if-a-pull-request-has-given-the-maintainer-the-ability-to-edit-the-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!