Skip to main content

Gestion de la fusion automatique des pull requests dans votre référentiel

Vous pouvez autoriser ou interdire la fusion automatique des pull requests dans votre référentiel.

Qui peut utiliser cette fonctionnalité ?

People with maintainer permissions can manage auto-merge for pull requests in a repository.

La fusion automatique pour les demandes de tirage est disponible dans les référentiels publics avec GitHub Free et GitHub Free pour les organisations, et dans les référentiels publics et privés avec GitHub Pro, GitHub Team, GitHub Enterprise Cloud et GitHub Enterprise Server.

Dans cet article

About auto-merge

If you allow auto-merge for pull requests in your repository, people with write permissions can configure individual pull requests in the repository to merge automatically when all merge requirements are met. If someone who does not have write permissions pushes changes to a pull request that has auto-merge enabled, auto-merge will be disabled for that pull request. For more information, see Automatically merging a pull request.

Managing auto-merge

Remarque

The option to enable auto-merge is shown only on pull requests that cannot be merged immediately. For example, when a branch protection rule enforces "Require pull request reviews before merging" or "Require status checks to pass before merging" and these conditions are not yet met. For more information, see Managing a branch protection rule.

  1. On GitHub, 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. On the left side of the page in the navigation bar, click General

  4. Toward the bottom of the page under "Pull Requests", select or deselect Allow auto-merge.

Screenshot of a repository settings showing the auto merge.