From nobody Tue Feb 10 19:09:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+76919+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76919+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1624435382; cv=none; d=zohomail.com; s=zohoarc; b=Yt1+QeFfwwhmPtdy42+5jh96LWIyoSK2v3Xk0vreTX5uZ5t5/IjPWUwd7qB4zW9XktskLUA+sTAtlye6ozNZ5cljOnbsaScrnNent2H3UPyHqmixxCB8/Wp2ogplLlwRplHl3zXGK5upTuA9u3VeKmBTwD+dfJTaXS53GWNFWGw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1624435382; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=JbFgTSj2Xnh9dM3Ms1u0FVe2yJYlTuRWoVxVdjZ7zuA=; b=IWQDk9+bj5+wCjYAYp4UR4M1+ethwgw6fMK9RwYI6oHvkBfBt63YpyDnHfRbDkAA8HA9RPIOo9UDjcnDNm+fiyetNlBTZA0AMSYzujdRCAlykFeKmAKhLTOflJbQnk8o17CJ+hFmXQQ5vpUBl44b6JjOjfa96h2kf12kDAmvDJI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+76919+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1624435382513968.2953194826925; Wed, 23 Jun 2021 01:03:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id AgSUYY1788612xmFfsgy3PeW; Wed, 23 Jun 2021 01:03:02 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.4579.1624435376480764524 for ; Wed, 23 Jun 2021 01:02:56 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1865A1063; Wed, 23 Jun 2021 01:02:56 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.78.245]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6BDF33F719; Wed, 23 Jun 2021 01:02:54 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v1 5/6] .mergify: Add Mergify YML pull request rules configuration file Date: Wed, 23 Jun 2021 09:02:08 +0100 Message-Id: <20210623080209.28380-6-Pierre.Gondois@arm.com> In-Reply-To: <20210623080209.28380-1-Pierre.Gondois@arm.com> References: <20210623080209.28380-1-Pierre.Gondois@arm.com> Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,pierre.gondois@arm.com X-Gm-Message-State: QrxkkZGqrK2CgdnkxLLQ466Vx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1624435382; bh=Qsg741MLw9vk37AJ4rhAcxW+TIEl8tGOFEuq6coARjw=; h=Date:From:Reply-To:Subject:To; b=czt+JFSZZtFz98Ji+vV5c9wnWPHxsBJkWxm5r83CJ7zsL+yjMsB3k5pERC3IOsPtKqv gLM21FddA694IzskDrkx1zXgllTcXS/YZUy5OLJUhexas5ktNHH3RTRglcqlQ5oLlw5WR W7lWbcC2zXEcElj5HP3FV01HIEhNl8zrID0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois These files are copies of the files from the tianocore/edk2 repository. Any modification to the tianocore/edk2 files must be reflected on the tianocore/edk2-platforms copies. Initial commid-id in the edk2 repository: ab060128768b Initial message: Add directory for the Mergify YML configuration files that provides rules and actions used to process a pull request. * Auto commit a PR from EDK II Maintainer with 'push' label set and all CI checks pass * Auto close a PR from any developers without 'push' label set and all CI checks pass. * Auto close a PR from a non EDK II Maintainer that has the 'push' label set. * Post a comment to a PR that has a merge conflict. Submitter can resolved conflicts and reopen the PR. * Post a comment to a PR that fails PatchCheck.py Submitter can resolve PatchCheck.py issues and reopen the PR. Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Pierre Gondois --- .mergify/config.yml | 98 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 .mergify/config.yml diff --git a/.mergify/config.yml b/.mergify/config.yml new file mode 100644 index 000000000000..ee27a4152a75 --- /dev/null +++ b/.mergify/config.yml @@ -0,0 +1,98 @@ +## @file +# Mergify YML file that automatically merges a GitHub pull request against +# edk2-ci if all of the GitHub branch protections have passed. It also +# contains rules to: +# * auto close branches that are not from an EDK II Maintainer +# * post a comment on pull requests that have merge conflicts. +# * post a comment on pull requests that have PatchCheck.py errors. +# +# Configuration Notes: +# * Update the 'base=3Dedk2-ci' statements with the name of the branch to = merge +# pull requests. +# +# * Update the 'status-failure' statement with the name of the name of the= Azure +# Pipelines Build that performs the EDK II Maintainer check. +# +# * This file must be checked into the 'default' branch of a repo. Copies +# of this file on other branches of a repo are ignored by Mergify. +# +# Copyright (c) 2021, Arm Ltd. All rights reserved.
+# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# https://github.com/apps/mergify +# https://doc.mergify.io/ +# +## + +pull_request_rules: + + - name: Automatically merge a PR when all required checks pass and 'push= ' label is present + conditions: + - base~=3D(^master|^stable/) + - label=3Dpush + - author=3D@tianocore/edk-ii-maintainers + - status-success=3Dtianocore.PatchCheck + - status-success=3DUbuntu GCC5 PR + - status-success=3DWindows VS2019 PR + actions: + merge: + strict: true + method: rebase + + - name: Automatically close a PR when all required checks pass and 'push= ' label is not present + conditions: + - base~=3D(^master|^stable/) + - -label=3Dpush + - -closed + - status-success=3Dtianocore.PatchCheck + - status-success=3DUbuntu GCC5 PR + - status-success=3DWindows VS2019 PR + - status-success=3DUbuntu GCC5 PR (FINISHED) + - status-success=3DWindows VS2019 PR (FINISHED) + actions: + close: + message: All checks passed. Auto close personal build. + + - name: Post a comment on a PR that can not be merged due to a merge con= flict + conditions: + - base~=3D(^master|^stable/) + - conflict + actions: + comment: + message: PR can not be merged due to conflict. Please rebase and = resubmit + + - name: Automatically close a PR that fails the EDK II Maintainers membe= rship check and 'push' label is present + conditions: + - base~=3D(^master|^stable/) + - label=3Dpush + - -author=3D@tianocore/edk-ii-maintainers + actions: + close: + message: PR submitter is not a member of the Tianocore EDK II Main= tainers team + + - name: Post a comment on a PR if PatchCheck fails + conditions: + - base~=3D(^master|^stable/) + - status-failure=3Dtianocore.PatchCheck + actions: + comment: + message: PR can not be merged due to a PatchCheck failure. Please= resolve and resubmit + + - name: Post a comment on a PR if Ubuntu GCC5 fails + conditions: + - base~=3D(^master|^stable/) + - status-failure=3DUbuntu GCC5 PR + - status-success=3DUbuntu GCC5 PR (FAILED) + actions: + comment: + message: PR can not be merged due to an Ubuntu GCC5 failure. Plea= se resolve and resubmit + + - name: Post a comment on a PR if Windows VS2019 fails + conditions: + - base~=3D(^master|^stable/) + - status-failure=3DWindows VS2019 PR + - status-success=3DWindows VS2019 PR (FAILED) + actions: + comment: + message: PR can not be merged due to a Windows VS2019 failure. Pl= ease resolve and resubmit --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#76919): https://edk2.groups.io/g/devel/message/76919 Mute This Topic: https://groups.io/mt/83733303/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-