From nobody Thu Apr 25 14:29:55 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=patchew-devel-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1645942448; cv=none; d=zohomail.com; s=zohoarc; b=nf18+nNmgwmN38mkqY65aqYwJwvcKgazsLJHRG9mY1LyOjKAgBBzRBbxftvLEdggpY3KCelQ0Iae9GsYBWLI5aDdAhxIrvKihEd6LKZrTFAn0GE9pNp3rGrEktQsfGrbpM7nE8iQ55QNfSLchorm0hvBNaAR+5tYWr9Db7cW2u8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1645942448; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=y8k5RI93UHujKLK46355whGomBKnpTYLk3z4enlZ/L8=; b=Hd1JmFmlhuzX3EpGqXl0psAnNtnIYOVMGgjgqtbNjyLew1JqdbhvzmAfgDlXeaZ1EIEH9KtqcjakjlpC8nCWypKOHnZyaYfW9mT5XPhdr1cZsL8lZH3GP+XC5iZYw8uZrLZbjx7FzptwmJqEFZ/M/HX5YcFZtQFZPEP6yUpekss= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1645942448004438.9856006072995; Sat, 26 Feb 2022 22:14:08 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-526-Hw14G-sgOdmzfwOdP3yc6Q-1; Sun, 27 Feb 2022 01:14:02 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 83388801FCE; Sun, 27 Feb 2022 06:14:01 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7AE737A22C; Sun, 27 Feb 2022 06:14:01 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 73E9E44A5D; Sun, 27 Feb 2022 06:14:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 21R6DRoT017024 for ; Sun, 27 Feb 2022 01:13:27 -0500 Received: by smtp.corp.redhat.com (Postfix) id 0A38D7D5A8; Sun, 27 Feb 2022 06:13:27 +0000 (UTC) Received: from localhost.localdomain (unknown [10.39.192.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 64FEB7CD6F for ; Sun, 27 Feb 2022 06:13:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645942446; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=y8k5RI93UHujKLK46355whGomBKnpTYLk3z4enlZ/L8=; b=jH56IE1uMCY8gptCNTebGADzb4Xoe6AcACBG/BaIhHiqy2jawHhRmRRkj4eEVRewpSjU1L Nhamrj0UiA9KD/UhS4/5Izd4Vl2fYjaWSOEp70n1J3d1IttKsoNS4QiSPzfnb94C/GeAeO lr2dqFDWLz9TxNXRW8q7pOgjA9NAPdQ= X-MC-Unique: Hw14G-sgOdmzfwOdP3yc6Q-1 From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sun, 27 Feb 2022 07:13:17 +0100 Message-Id: <20220227061317.37057-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] git: only mark as pending the series for which a git push repo is configured X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=patchew-devel-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1645942450251100011 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- mods/git.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/git.py b/mods/git.py index bcaab7c..47b6e17 100644 --- a/mods/git.py +++ b/mods/git.py @@ -110,8 +110,16 @@ class GitModule(PatchewModule): register_handler("SeriesComplete", self.on_series_update) register_handler("TagsUpdate", self.on_tags_update) =20 + def project_has_git_config(self, project) + config =3D self.get_project_config(project) + return "push_to" in config + def mark_as_pending_apply(self, series, data=3D{}): - r =3D series.git_result or series.create_result(name=3D"git") + r =3D series.git_result + if not r: + if not self.project_has_git_config(project): + return + r =3D series.create_result(name=3D"git") r.log =3D None r.status =3D Result.PENDING r.data =3D data --=20 2.34.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://listman.redhat.com/mailman/listinfo/patchew-devel