Skip to content

Commit 6002577

Browse files
authored
Merge pull request #16719 from github/repo-sync
repo sync
2 parents 0bfd4ef + 2570de8 commit 6002577

File tree

18 files changed

+143
-129
lines changed

18 files changed

+143
-129
lines changed
Loading
Loading
Loading
Loading
Loading
Binary file not shown.

content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/adding-a-pull-request-to-the-merge-queue.md

Lines changed: 0 additions & 61 deletions
This file was deleted.

content/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ children:
1616
- /about-pull-request-merges
1717
- /merging-a-pull-request
1818
- /automatically-merging-a-pull-request
19-
- /adding-a-pull-request-to-the-merge-queue
19+
- /merging-a-pull-request-with-a-merge-queue
2020
- /closing-a-pull-request
2121
- /reverting-a-pull-request
2222
shortTitle: Incorporate changes
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: Merging a pull request with a merge queue
3+
intro: 'If a merge queue is required by the branch protection setting for the branch, you can add your pull requests to a merge queue and {% data variables.product.product_name %} will merge the pull requests for you once all required checks have passed.'
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
7+
topics:
8+
- Pull requests
9+
shortTitle: Merge PR with merge queue
10+
redirect_from:
11+
- /pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/adding-a-pull-request-to-the-merge-queue
12+
---
13+
14+
{% data reusables.pull_requests.merge-queue-beta %}
15+
16+
## About merge queues
17+
18+
{% data reusables.pull_requests.merge-queue-overview %}
19+
{% data reusables.pull_requests.merge-queue-references %}
20+
21+
## Adding a pull request to a merge queue
22+
23+
{% data reusables.repositories.navigate-to-repo %}
24+
{% data reusables.repositories.sidebar-pr %}
25+
26+
1. In the "Pull Requests" list, click the pull request you would like to add to a merge queue.
27+
28+
1. Click **Merge when ready** to add the pull request to the merge queue. Alternatively, if you are an administrator, you can:
29+
- Directly merge the pull request by checking **Merge without waiting for requirements to be met (administrators only)**, if allowed by branch protection settings, and follow the standard flow.
30+
![Merge queue options](/assets/images/help/pull_requests/merge-queue-options.png)
31+
32+
{% tip %}
33+
34+
**Tip:** You can click **Merge when ready** whenever you're ready to merge your proposed changes. {% data variables.product.product_name %} will automatically add the pull request to the merge queue once required approval and status checks conditions are met.
35+
36+
{% endtip %}
37+
38+
1. Confirm you want to add the pull request to the merge queue by clicking **Confirm merge when ready**.
39+
40+
## Removing a pull request from a merge queue
41+
42+
{% data reusables.repositories.navigate-to-repo %}
43+
{% data reusables.repositories.sidebar-pr %}
44+
45+
1. In the "Pull Requests" list, click the pull request you would like to remove from a merge queue.
46+
47+
1. To remove the pull request from the queue, click **Remove from queue**.
48+
![Remove pull request from queue](/assets/images/help/pull_requests/remove-from-queue-button.png)
49+
50+
Alternatively, you can navigate to the merge queue page for the base branch, click **...** next to the pull request you want to remove, and select **Remove from queue**. For information on how to get to the merge queue page for the base branch, see the section below.
51+
52+
## Viewing merge queues
53+
54+
You can view the merge queue for a base branch in various places on {% data variables.product.product_name %}.
55+
56+
- On the **Branches** page for the repository. We recommend you use this route if you don't have or don't know about a pull request already in a queue, and if you want to see what's in that queue. For more information, see "[Viewing branches in your repository](/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/viewing-branches-in-your-repository)."
57+
58+
![View merge queue in Branches page](/assets/images/help/pull_requests/merge-queue-branches-page.png)
59+
60+
- On the **Pull requests** page of your repository, click {% octicon "clock" aria-label="The clock symbol" %} next to any pull request in the merge queue.
61+
62+
![View merge queue on Pull requests page](/assets/images/help/pull_requests/clock-icon-in-pull-request-list.png)
63+
64+
- On the pull request page when merge queue is required for merging, scroll to the bottom of the timeline and click **the merge queue** link.
65+
66+
![Merge queue link on pull request](/assets/images/help/pull_requests/merge-queue-link.png)
67+
68+
- The merge queue view shows the pull requests that are currently in the queue, with your pull requests clearly marked.
69+
70+
![Merge queue view](/assets/images/help/pull_requests/merge-queue-view.png)
71+
72+
## Handling pull requests removed from the merge queue
73+
74+
{% data reusables.pull_requests.merge-queue-reject %}

content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ children:
1515
- /about-merge-methods-on-github
1616
- /configuring-commit-squashing-for-pull-requests
1717
- /configuring-commit-rebasing-for-pull-requests
18-
- /using-a-merge-queue
18+
- /managing-a-merge-queue
1919
- /managing-suggestions-to-update-pull-request-branches
2020
- /managing-auto-merge-for-pull-requests-in-your-repository
2121
- /managing-the-automatic-deletion-of-branches
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Managing a merge queue
3+
intro: You can increase development velocity with a merge queue for pull requests in your repository.
4+
versions:
5+
fpt: '*'
6+
ghec: '*'
7+
permissions: People with admin permissions can manage merge queues for pull requests targeting selected branches of a repository.
8+
topics:
9+
- Repositories
10+
- Pull requests
11+
shortTitle: Managing merge queue
12+
redirect_from:
13+
- /repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue
14+
---
15+
16+
{% data reusables.pull_requests.merge-queue-beta %}
17+
18+
## About merge queues
19+
20+
{% data reusables.pull_requests.merge-queue-overview %}
21+
22+
The merge queue creates temporary branches with a special prefix to validate pull request changes. The changes in the pull request are then grouped with the latest version of the `base_branch` as well as changes ahead of it in the queue. {% data variables.product.product_name %} will merge all these changes into `base_branch` once the checks required by the branch protections of `base_branch` pass.
23+
24+
You may need to update your Continuous Integration (CI) configuration to trigger builds on branch names that begin with the special prefix `gh-readonly-queue/{base_branch}` after the group is created.
25+
26+
For example, with {% data variables.product.prodname_actions %}, a workflow with the following trigger will run each time a pull request that targets the base branch `main` is queued to merge.
27+
28+
```yaml
29+
on:
30+
push:
31+
branches:
32+
- gh-readonly-queue/main/**
33+
```
34+
35+
{% data reusables.pull_requests.merge-queue-merging-method %}
36+
37+
For information about merge methods, see "[About pull request merges](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/about-pull-request-merges)."
38+
39+
{% note %}
40+
41+
**Note:**
42+
43+
* A merge queue cannot be enabled with branch protection rules that use wildcard characters (`*`) in the branch name pattern.
44+
45+
{% endnote %}
46+
47+
{% data reusables.pull_requests.merge-queue-reject %}
48+
49+
## Managing a merge queue
50+
51+
Repository administrators can require a merge by enabling the branch protection setting "Require merge queue" in the protection rules for the base branch.
52+
53+
For information about how to enable the merge queue protection setting, see "[Managing a branch protection rule](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule#creating-a-branch-protection-rule)."
54+
55+
## Further reading
56+
57+
* "[Merging a pull request with a merge queue](/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/merging-a-pull-request-with-a-merge-queue)"
58+
* "[About protected branches](/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/about-protected-branches)"

content/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue.md

Lines changed: 0 additions & 55 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
Once CI checks pass, {% data variables.product.product_name %} merges the pull request by fast-forwarding the default branch. The merge queue will use merge commits if the "Require linear history" branch protection setting is turned off, and the "Rebase and merge" method otherwise.
2-
1+
{% data variables.product.product_name %} merges the pull request according to the merge strategy configured in the branch protection once all required CI checks pass.
2+
3+
![Merge queue merging method](/assets/images/help/pull_requests/merge-queue-merging-method.png)

data/reusables/pull_requests/merge-queue-overview-short.md

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Merge queues for pull requests can increase the rate at which pull requests are merged into a busy default branch, whilst ensuring that CI checks pass.
1+
A merge queue can increase the rate at which pull requests are merged into a busy target branch while ensuring that all required branch protection checks pass.
22

3-
Merge queues use {% data variables.product.prodname_actions %}. For more information about actions, see "[{% data variables.product.prodname_actions %}](/actions/)."
3+
Once a pull request has passed all of the required branch protection checks, a user with write access to the repository can add that pull request to a merge queue.
44

5-
Once a pull request has passed any required checks and approvals, a contributor with write access can add the pull request to the merge queue. The queue then creates a temporary branch with that pull request and any pull requests ahead of it in the queue, and triggers any required continuous integration (CI) checks.
5+
A merge queue may use {% data variables.product.prodname_actions %}. For more information, see "[{% data variables.product.prodname_actions %}](/actions/)."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
For more information about merge queues, see "[Using a merge queue](/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue)."
2+
For information about merge queue, see "[Managing a merge queue](/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue)."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
If there are failed status checks or conflicts with the base branch, {% data variables.product.product_name %} will remove the pull request from the queue. The pull request timeline will display the reason why the pull request has been removed from the queue.
2+
After grouping a pull request with the latest version of the target branch and changes ahead of it in the queue, if there are failed required status checks or conflicts with the base branch, {% data variables.product.product_name %} will remove the pull request from the queue. The pull request timeline will display the reason why the pull request was removed from the queue.

lib/search/popular-pages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@
627627
{"path_article": "repositories/viewing-activity-and-data-for-your-repository/viewing-a-summary-of-repository-activity", "path_count": 2701}
628628
{"path_article": "issues/using-labels-and-milestones-to-track-work/creating-and-editing-milestones-for-issues-and-pull-requests", "path_count": 2699}
629629
{"path_article": "actions/managing-workflow-runs/skipping-workflow-runs", "path_count": 2694}
630-
{"path_article": "repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/using-a-merge-queue", "path_count": 2677}
630+
{"path_article": "repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue", "path_count": 2677}
631631
{"path_article": "code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/managing-code-scanning-alerts-for-your-repository", "path_count": 2664}
632632
{"path_article": "developers/apps/building-oauth-apps", "path_count": 2649}
633633
{"path_article": "developers/apps/building-github-apps/refreshing-user-to-server-access-tokens", "path_count": 2646}

0 commit comments

Comments
 (0)