Skip to content

Commit d20831c

Browse files
lecoursenmattpollardmyarb
authored
Auto-merge (#16761)
* Add new article * Mention auto-merge in related articles * Add new article * Make intro inclusive * Add content for repo setting * Add versioning to reusable * Add procedures * Add gated features callout * Add permissions statements * Add conceptual content * Fix filename * Add missing step * Fix syntax * Add 💅 * Update permissions * Add 💅 * Add missing period * Add 💅 * Add 💅 * Add auto-merge to permissions articles * Fix permissions * Add 💅 * Let @mattpollard fix everything and take partial credit Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> * Incorporate answers to questions * Add how to provide feedback * Update feedback link Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com> Co-authored-by: Melanie Yarbrough <11952755+myarb@users.noreply.github.com>
1 parent f3a70d1 commit d20831c

18 files changed

Lines changed: 84 additions & 4 deletions
24.6 KB
Loading
13.8 KB
Loading
38 KB
Loading
33.4 KB
Loading
79.1 KB
Loading
30.3 KB
Loading

content/github/administering-a-repository/about-protected-branches.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ versions:
1111
github-ae: '*'
1212
---
1313

14+
### About protected branches
15+
1416
{% data reusables.pull_requests.about-protected-branches %} You can choose to enforce restrictions on how a pull request is merged into your repository.
1517

1618
Repository owners and people with admin permissions for a repository can enforce certain workflows or requirements, before a collaborator can merge a branch in your repository by creating protected branch rules.
1719

1820
{% data reusables.repositories.branch-rules-example %} For more information, see "[Configuring protected branches](/articles/configuring-protected-branches/)."
1921

22+
{% data reusables.pull_requests.you-can-auto-merge %}
23+
2024
### Prioritization of protected branch rules
2125

2226
If a repository has multiple protected branch rules that affect the same branches, the rules that include a specific branch name have the highest priority. If there is more than one protected branch rule that references the same specific branch name, then the branch rule created first will have higher priority.

content/github/administering-a-repository/configuring-pull-request-merges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Configuring pull request merges
3-
intro: 'You can configure pull request merges on {% data variables.product.product_location %} to match your workflow and preferences for managing Git history by enabling, disabling, or enforcing standard merge commits, squashed commits, or rebased commits on all pull requests in your repository.'
3+
intro: 'You can configure pull request merges on {% data variables.product.product_location %} to match your workflow and preferences for managing Git history.'
44
mapTopic: true
55
redirect_from:
66
- /articles/configuring-pull-request-merges

content/github/administering-a-repository/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ versions:
3939
{% link_in_list /about-merge-methods-on-github %}
4040
{% link_in_list /configuring-commit-squashing-for-pull-requests %}
4141
{% link_in_list /configuring-commit-rebasing-for-pull-requests %}
42+
{% link_in_list /managing-auto-merge-for-pull-requests-in-your-repository %}
4243
{% link_in_list /managing-the-automatic-deletion-of-branches %}
4344
{% topic_link_in_list /defining-the-mergeability-of-pull-requests %}
4445
{% link_in_list /about-protected-branches %}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: Managing auto-merge for pull requests in your repository
3+
intro: "You can allow or disallow auto-merge for pull requests in your repository."
4+
product: '{% data reusables.gated-features.auto-merge %}'
5+
versions:
6+
free-pro-team: '*'
7+
permissions: People with maintainer permissions can manage auto-merge for pull requests in a repository.
8+
---
9+
10+
{% data reusables.pull_requests.auto-merge-release-phase %}
11+
12+
If you allow auto-merge for pull requests in your repository, people can configure individual pull requests in the repository to merge automatically when all merge requirements are met. For more information, see "[Automatically merging a pull request](/github/collaborating-with-issues-and-pull-requests/automatically-merging-a-pull-request)."
13+
14+
{% data reusables.repositories.navigate-to-repo %}
15+
{% data reusables.repositories.sidebar-settings %}
16+
1. Under "Merge button", select or deselect **Allow auto-merge**.
17+
![Checkbox to allow or disallow auto-merge](/assets/images/help/pull_requests/allow-auto-merge-checkbox.png)

0 commit comments

Comments
 (0)