如何判断拉取请求是否使维护者能够编辑拉取请求

如何判断拉取请求是否使维护者能够编辑拉取请求

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

问题描述

拉取请求的发起者可以使维护者可以编辑拉取请求.

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:

  • 我用一些代码创建了一个仓库
  • 有人分叉,进行了更改,进行了公关
  • 我想在合并他们的PR之前进行一些调整
  • 作为维护者,我可能会或可能不会具有编辑PR的权限
  • 如何确定我是否被授予此权限?
  • 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:

当前,您唯一了解拉取请求作者是否已从维护者中选择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.

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

07-24 08:28