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