]> git.proxmox.com Git - mirror_edk2.git/blame - .mergify/config.yml
UefiCpuPkg/MpInitLib: Skip reading PlatformId on AMD processors.
[mirror_edk2.git] / .mergify / config.yml
CommitLineData
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
19# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>\r
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
27pull_request_rules:\r
28\r
29 - name: Automatically merge a PR when all required checks pass and 'push' label is present\r
30 conditions:\r
31 - base=master\r
32 - label=push\r
33 - author=@tianocore/edk-ii-maintainers\r
34 - status-success=tianocore.PatchCheck\r
35 - status-success=Ubuntu GCC5 PR\r
36 - status-success=Windows VS2019 PR\r
37 actions:\r
38 merge:\r
39 strict: true\r
40 method: rebase\r
41\r
42 - name: Automatically close a PR when all required checks pass and 'push' label is not present\r
43 conditions:\r
44 - base=master\r
45 - -label=push\r
46 - -closed\r
47 - status-success=tianocore.PatchCheck\r
48 - status-success=Ubuntu GCC5 PR\r
49 - status-success=Windows VS2019 PR\r
50 - status-success=Ubuntu GCC5 PR (FINISHED)\r
51 - status-success=Windows VS2019 PR (FINISHED)\r
52 actions:\r
53 close:\r
54 message: All checks passed. Auto close personal build.\r
55\r
56 - name: Post a comment on a PR that can not be merged due to a merge conflict\r
57 conditions:\r
58 - base=master\r
59 - conflict\r
60 actions:\r
61 comment:\r
62 message: PR can not be merged due to conflict. Please rebase and resubmit\r
63\r
64 - name: Automatically close a PR that fails the EDK II Maintainers membership check and 'push' label is present\r
65 conditions:\r
66 - base=master\r
67 - label=push\r
68 - -author=@tianocore/edk-ii-maintainers\r
69 actions:\r
70 close:\r
71 message: PR submitter is not a member of the Tianocore EDK II Maintainers team\r
72\r
73 - name: Post a comment on a PR if PatchCheck fails\r
74 conditions:\r
75 - base=master\r
76 - status-failure=tianocore.PatchCheck\r
77 actions:\r
78 comment:\r
79 message: PR can not be merged due to a PatchCheck failure. Please resolve and resubmit\r
80\r
81 - name: Post a comment on a PR if Ubuntu GCC5 fails\r
82 conditions:\r
83 - base=master\r
84 - status-failure=Ubuntu GCC5 PR\r
85 - status-success=Ubuntu GCC5 PR (FAILED)\r
86 actions:\r
87 comment:\r
88 message: PR can not be merged due to an Ubuntu GCC5 failure. Please resolve and resubmit\r
89\r
90 - name: Post a comment on a PR if Windows VS2019 fails\r
91 conditions:\r
92 - base=master\r
93 - status-failure=Windows VS2019 PR\r
94 - status-success=Windows VS2019 PR (FAILED)\r
95 actions:\r
96 comment:\r
97 message: PR can not be merged due to a Windows VS2019 failure. Please resolve and resubmit\r