]> git.proxmox.com Git - mirror_edk2.git/blob - .mergify/config.yml
.mergify: Simplify Mergify rules using GitHub status checks
[mirror_edk2.git] / .mergify / config.yml
1 ## @file
2 # Mergify YML file that automatically merges a GitHub pull request against
3 # edk2-ci if all of the GitHub branch protections have passed. It also
4 # contains rules to:
5 # * auto close branches that are not from an EDK II Maintainer
6 # * post a comment on pull requests that have merge conflicts.
7 # * post a comment on pull requests that have PatchCheck.py errors.
8 #
9 # Configuration Notes:
10 # * Update the 'base=edk2-ci' statements with the name of the branch to merge
11 # pull requests.
12 #
13 # * Update the 'status-failure' statement with the name of the name of the Azure
14 # Pipelines Build that performs the EDK II Maintainer check.
15 #
16 # * This file must be checked into the 'default' branch of a repo. Copies
17 # of this file on other branches of a repo are ignored by Mergify.
18 #
19 # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>
20 # SPDX-License-Identifier: BSD-2-Clause-Patent
21 #
22 # https://github.com/apps/mergify
23 # https://doc.mergify.io/
24 #
25 ##
26
27 queue_rules:
28 - name: default
29 conditions:
30 - base~=(^main|^master|^stable/)
31 - label=push
32
33 pull_request_rules:
34 - name: Automatically merge a PR when all required checks pass and 'push' label is present
35 conditions:
36 - base~=(^main|^master|^stable/)
37 - label=push
38 actions:
39 queue:
40 method: rebase
41 rebase_fallback: none
42 name: default
43
44 - name: Post a comment on a PR that can not be merged due to a merge conflict
45 conditions:
46 - base~=(^main|^master|^stable/)
47 - conflict
48 actions:
49 comment:
50 message: PR can not be merged due to conflict. Please rebase and resubmit