title | intro | product | versions | permissions | topics | redirect_from | shortTitle | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Managing auto-merge for pull requests in your repository |
You can allow or disallow auto-merge for pull requests in your repository. |
{% data reusables.gated-features.auto-merge %} |
|
People with maintainer permissions can manage auto-merge for pull requests in a repository. |
|
|
Manage 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. {% ifversion fpt or ghae-next or ghes > 3.1 %}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. {% endif %}For more information, see "Automatically merging a pull request."
{% data reusables.pull_requests.auto-merge-requires-branch-protection %}
{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-settings %}
- Under "Merge button", select or deselect Allow auto-merge. Reference: https://github.com/github/docs/edit/main/content/github/administering-a-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository.md