如何判断拉取请求是否使维护者能够编辑拉取请求? [英] How to tell if a pull request has given the maintainer the ability to edit the pull request?

查看:92
本文介绍了如何判断拉取请求是否使维护者能够编辑拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拉取请求的发起者可以

The initiator of a pull request may give the maintainer the ability to edit the pull request.

对于任何给定的拉取请求,我们如何确定该能力是否已被授予? (最好是我想通过浏览器知道,但cli也可以)

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 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?

我已在github支持下提交了票证,并将使用我发现的任何内容更新问题.

I have lodged a ticket with github support and will update the question with anything I find.

作为最后的手段,我将尝试通过创建虚拟github帐户来解决,对两个相同的存储库进行两个相同的PR(一个授予编辑权限,另一个不授予),以查看是否可以发现差异).如果有人先这样做,请在下面回答.

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.

推荐答案

来自github支持:

From github support:

很遗憾,没有过滤器可以查看哪些拉取请求已允许维护者进行编辑.

Unfortunately there isn't a filter to see which pull requests have allowed edits from maintainers.

当前,您唯一了解拉取请求作者是否已从维护者中选择Allow Edits的方法就是您尝试编辑拉取请求中的文件.

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.

这篇关于如何判断拉取请求是否使维护者能够编辑拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆