gpt4 book ai didi

git - 如何判断 pull 请求是否赋予维护者编辑 pull 请求的能力?

转载 作者:行者123 更新时间:2023-12-04 16:41:27 24 4
gpt4 key购买 nike

pull 请求的发起者可能 give the maintainer the ability to edit the pull request .

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

为清楚起见

这是我试图解决的案件的具体情况:

  • 我用一些代码创建了一个仓库
  • 有人 fork 了,做了修改,做了 PR
  • 我想在 merge 他们的 PR 之前做一些调整
  • 作为维护者,我 may or may not have permission to edit the PR before merging
  • 我如何知道我是否已获得此许可?

  • 更新

    我已经向 github 支持提交了一张票,并将用我找到的任何东西更新问题。

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

    最佳答案

    来自 github 支持:

    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

    关于git - 如何判断 pull 请求是否赋予维护者编辑 pull 请求的能力?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60033729/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com