Skip to main content

Управление предложениями по обновлению ветвей запросов на вытягивание

Вы можете предоставить пользователям возможность всегда обновлять ветвь запроса на вытягивание, если она не актуализирована с базовой ветвью.

Кто может использовать эту функцию.

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."

Managing suggestions to update a pull request branch

  1. On, navigate to the main page of the repository.

  2. Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

    Screenshot of a repository header showing the tabs. The "Settings" tab is highlighted by a dark orange outline.

  3. Under "Pull Requests", select or unselect Always suggest updating pull request branches.