我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.19

允许更改从复刻创建的拉取请求分支

For greater collaboration, you can allow commits on branches you've created from forks owned by your user account.

People with push access to the upstream repository of a fork owned by a user account can commit to the forked branches.

本文内容

Only pull request authors can give upstream repository maintainers, or those with push access to the upstream repository, permission to make commits to their pull request's compare branch in a user-owned fork. 要详细了解上游仓库,请参阅“关于复刻”。

Pull request authors can give these permissions when they initially create a pull request from a user-owned fork or after they create the pull request. For more information, see "Creating a pull request from a fork."

您可以在第一次从复刻创建拉取请求时设置提交权限。 更多信息请参阅“从复刻创建拉取请求”。此外,您也可以修改现有拉取请求,让仓库维护员提交到分支。

在现有拉取请求上启用仓库维护员权限

  1. 在 GitHub Enterprise 上,导航到拉取请求上游仓库的主页面。
  2. 在上游仓库名称下,单击 Pull requests(拉取请求)
    议题和拉取请求选项卡选择
  3. 在拉取请求列表中,导航到要允许在其中提交的拉取请求。
  4. On user-owned forks, if you do not want to allow anyone with push access to the upstream repository to make changes to your pull request, unselect Allow edits from maintainers.
    allow-maintainers-to-make-edits-sidebar-checkbox

延伸阅读

问问别人

找不到要找的内容?

联系我们