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
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.
10 # * Update the 'base=edk2-ci' statements with the name of the branch to merge
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.
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.
19 # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR>
20 # SPDX-License-Identifier: BSD-2-Clause-Patent
22 # https://github.com/apps/mergify
23 # https://doc.mergify.io/
30 - base~=(^main|^master|^stable/)
34 - name: Automatically merge a PR when all required checks pass and 'push' label is present
36 - base~=(^main|^master|^stable/)
44 - name: Post a comment on a PR that can not be merged due to a merge conflict
46 - base~=(^main|^master|^stable/)
50 message: PR can not be merged due to conflict. Please rebase and resubmit