<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Acked-by: Bret Barkelew <bret.barkelew@microsoft.com></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- Bret<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="border:none;padding:0in"><b>From: </b><a href="mailto:michael.d.kinney@intel.com">Michael D Kinney</a><br>
<b>Sent: </b>Wednesday, July 7, 2021 8:49 PM<br>
<b>To: </b><a href="mailto:devel@edk2.groups.io">devel@edk2.groups.io</a><br>
<b>Cc: </b><a href="mailto:gaoliming@byosoft.com.cn">Liming Gao</a>; <a href="mailto:sean.brogan@microsoft.com">
Sean Brogan</a>; <a href="mailto:Bret.Barkelew@microsoft.com">Bret Barkelew</a><br>
<b>Subject: </b>[EXTERNAL] [Patch 2/3] .mergify: Simplify Mergify rules using GitHub status checks</p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">* Enable Mergify queue feature to support auto rebase when<br>
  'push' label is set and gauarntee that all EDK II CI checks<br>
  are run before merging in changes with linear history.<br>
* Use status checks configured in GitHub branch protections<br>
* Allow non EDK II Maintainers to create a PR<br>
  Requires an EDK II Maintainer to accept the change and<br>
  request merge by adding 'push' label.  Only EDK II Maintainers<br>
  have ability to set/clear labels.<br>
* Do not automatically close PRs for personal builds.<br>
<br>
Cc: Liming Gao <gaoliming@byosoft.com.cn><br>
Cc: Sean Brogan <sean.brogan@microsoft.com><br>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com><br>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com><br>
---<br>
 .mergify/config.yml | 71 ++++++++-------------------------------------<br>
 1 file changed, 12 insertions(+), 59 deletions(-)<br>
<br>
diff --git a/.mergify/config.yml b/.mergify/config.yml<br>
index 9774aaf49774..bd6da4c77937 100644<br>
--- a/.mergify/config.yml<br>
+++ b/.mergify/config.yml<br>
@@ -16,7 +16,7 @@<br>
 # * This file must be checked into the 'default' branch of a repo.  Copies<br>
 #   of this file on other branches of a repo are ignored by Mergify.<br>
 #<br>
-# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR><br>
+# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR><br>
 # SPDX-License-Identifier: BSD-2-Clause-Patent<br>
 #<br>
 # <a href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapps%2Fmergify&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7Cb73475b4d67744f2e3ce08d941c35a00%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637613129552748468%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bWUUW1qS2GsSqRMBiZELIj4qlLBe06nkALTz0hkLrLo%3D&amp;reserved=0">
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapps%2Fmergify&amp;data=04%7C01%7CBret.Barkelew%40microsoft.com%7Cb73475b4d67744f2e3ce08d941c35a00%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637613129552748468%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=bWUUW1qS2GsSqRMBiZELIj4qlLBe06nkALTz0hkLrLo%3D&amp;reserved=0</a><br>
@@ -24,74 +24,27 @@<br>
 #<br>
 ##<br>
 <br>
+queue_rules:<br>
+  - name: default<br>
+    conditions:<br>
+      - base~=(^main|^master|^stable/)<br>
+      - label=push<br>
+<br>
 pull_request_rules:<br>
-<br>
   - name: Automatically merge a PR when all required checks pass and 'push' label is present<br>
     conditions:<br>
-      - base~=(^master|^stable/)<br>
+      - base~=(^main|^master|^stable/)<br>
       - label=push<br>
-      - author=@tianocore/edk-ii-maintainers<br>
-      - status-success=tianocore.PatchCheck<br>
-      - status-success=Ubuntu GCC5 PR<br>
-      - status-success=Windows VS2019 PR<br>
     actions:<br>
-      merge:<br>
-        strict: true<br>
+      queue:<br>
         method: rebase<br>
-<br>
-  - name: Automatically close a PR when all required checks pass and 'push' label is not present<br>
-    conditions:<br>
-      - base~=(^master|^stable/)<br>
-      - -label=push<br>
-      - -closed<br>
-      - status-success=tianocore.PatchCheck<br>
-      - status-success=Ubuntu GCC5 PR<br>
-      - status-success=Windows VS2019 PR<br>
-      - status-success=Ubuntu GCC5 PR (FINISHED)<br>
-      - status-success=Windows VS2019 PR (FINISHED)<br>
-    actions:<br>
-      close:<br>
-        message: All checks passed. Auto close personal build.<br>
+        rebase_fallback: none<br>
+        name: default<br>
 <br>
   - name: Post a comment on a PR that can not be merged due to a merge conflict<br>
     conditions:<br>
-      - base~=(^master|^stable/)<br>
+      - base~=(^main|^master|^stable/)<br>
       - conflict<br>
     actions:<br>
       comment:<br>
         message: PR can not be merged due to conflict.  Please rebase and resubmit<br>
-<br>
-  - name: Automatically close a PR that fails the EDK II Maintainers membership check and 'push' label is present<br>
-    conditions:<br>
-      - base~=(^master|^stable/)<br>
-      - label=push<br>
-      - -author=@tianocore/edk-ii-maintainers<br>
-    actions:<br>
-      close:<br>
-        message: PR submitter is not a member of the Tianocore EDK II Maintainers team<br>
-<br>
-  - name: Post a comment on a PR if PatchCheck fails<br>
-    conditions:<br>
-      - base~=(^master|^stable/)<br>
-      - status-failure=tianocore.PatchCheck<br>
-    actions:<br>
-      comment:<br>
-        message: PR can not be merged due to a PatchCheck failure.  Please resolve and resubmit<br>
-<br>
-  - name: Post a comment on a PR if Ubuntu GCC5 fails<br>
-    conditions:<br>
-      - base~=(^master|^stable/)<br>
-      - status-failure=Ubuntu GCC5 PR<br>
-      - status-success=Ubuntu GCC5 PR (FAILED)<br>
-    actions:<br>
-      comment:<br>
-        message: PR can not be merged due to an Ubuntu GCC5 failure.  Please resolve and resubmit<br>
-<br>
-  - name: Post a comment on a PR if Windows VS2019 fails<br>
-    conditions:<br>
-      - base~=(^master|^stable/)<br>
-      - status-failure=Windows VS2019 PR<br>
-      - status-success=Windows VS2019 PR (FAILED)<br>
-    actions:<br>
-      comment:<br>
-        message: PR can not be merged due to a Windows VS2019 failure.  Please resolve and resubmit<br>
-- <br>
2.32.0.windows.1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>


 <div width="1" style="color:white;clear:both">_._,_._,_</div> <hr>   Groups.io Links:<p>   You receive all messages sent to this group.    <p> <a target="_blank" href="https://edk2.groups.io/g/devel/message/77581">View/Reply Online (#77581)</a> |    |  <a target="_blank" href="https://groups.io/mt/84061194/1813853">Mute This Topic</a>  | <a href="https://edk2.groups.io/g/devel/post">New Topic</a><br>    <a href="https://edk2.groups.io/g/devel/editsub/1813853">Your Subscription</a> | <a href="mailto:devel+owner@edk2.groups.io">Contact Group Owner</a> |  <a href="https://edk2.groups.io/g/devel/unsub">Unsubscribe</a>  [edk2-devel-archive@redhat.com]<br> <div width="1" style="color:white;clear:both">_._,_._,_</div>