Skip to main content

Managing suggestions to update pull request branches

You can give users the ability to always update a pull request branch when it is not up to date with the base branch.

Who can use this feature

People with maintainer permissions can enable or disable the setting to suggest updating pull request branches.

About suggestions to update a pull request branch

If you enable the setting to always suggest updating pull request branches in your repository, people with write permissions will always have the ability, on the pull request page, to update a pull request's head branch when it's not up to date with the base branch. When not enabled, the ability to update is only available when the base branch requires branches to be up to date before merging and the branch is not up to date. For more information, see "Keeping your pull request in sync with the base branch."

注意:此功能在 GitHub Enterprise Server 3.5.0、3.5.1、3.5.2 和 3.5.3 中不可用。 此功能在 3.5.4 及更高版本中可用。 有关升级的详细信息,请联系站点管理员。

有关确定所使用的 GitHub Enterprise Server 版本的详细信息,请参阅“关于 GitHub Docs 的版本”。

Managing suggestions to update a pull request branch

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.
  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮
  3. Under "Pull Requests", select or unselect Always suggest updating pull request branches. Checkbox to enable or disable always suggest updating branch