Queue
Put your pull request into the merge queue.
The queue
action allows you to put a pull request into a merge
queue. By placing pull requests in a queue, you can make sure
they are up-to-date and control their processing based on their priority.
Parameters
Section titled ParametersKey name | Value type | Default | |
---|---|---|---|
allow_merging_configuration_change | boolean |
| deprecated |
Allow merging the Mergify configuration file. This option does not do anything and is only present for backward compatibility. | |||
autosquash | boolean |
| deprecated |
This option is relevant only if you do in place checks and if you use the | |||
commit_message_template | template or null |
| deprecated |
Template to use as the commit message when using the merge or squash merge method. | |||
merge_bot_account | template or null |
| deprecated |
Mergify can impersonate a GitHub user to merge pull requests. If no | |||
merge_method | merge , rebase , squash or fast-forward or null |
| deprecated |
Merge method to use. If no value is set, Mergify uses the first authorized method available in the repository configuration. | |||
name | string or null |
| |
The name of the queue where the pull request should be added. If no name is set, queue_conditions will be applied instead. | |||
update_bot_account | template or null |
| deprecated |
For certain actions, such as rebasing branches, Mergify has to impersonate a GitHub user. You can specify the account to use with this option. If no | |||
update_method | rebase or merge or null |
| deprecated |
Method to use to update the pull request with its base branch when the check is done in place. Possible values:
This option overrides the value defined in the queue rules section of the configuration.
The default is rebase when the |
Examples
Section titled ExamplesSimple Queue
Section titled Simple Queuepull_request_rules:
- name: put PRs in queue
conditions:
- base = main
actions:
queue:
In this example, any pull request that is based on the main branch will be
placed in the production queue. The pull request still needs to match the
queue_conditions
defined in the queue to enter the queue.
Choosing the Merge Method
Section titled Choosing the Merge Methodpull_request_rules:
- name: put PRs in queue (rebase)
conditions:
- base = main
- label = rebase
actions:
queue:
merge_method: rebase
- name: put PRs in queue (merge)
conditions:
- base = main
- label != rebase
actions:
queue:
merge_method: merge
In this example, any pull request that has the label rebase
will enter the
queue with a merge_method
set to rebase
, ensuring it’s merged via rebase.
Whereas all the other pull requests will be merged using the merge
method.