From nobody Sat Apr 27 02:46:58 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1570436877; cv=none; d=zoho.com; s=zohoarc; b=Ls+jwTfikjIMuFUrb7O7Ns3CCuMFa9SrVUPQ1n15SuV/n8NBkIUIhH8miwKzBwXpfJ7VKbj8anvtOYitfY/3lMTTJVVccRYAtn5q5/8m+2ZQxk4tBj0fQog5I2ixScALOe12hiJDpt4mIptf69SKur8Hdn/INtT+IE96kkIN+0U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570436877; 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:ARC-Authentication-Results; bh=KeKjHWMPScuApneEmB6DTpLRZAAPi83m3qACsE8xONw=; b=PVb8I6Zqyc80MlFUAmDRGi8szrFTZ5uvaUHJ14tVs5ShXiKjgKnogA10xbgyMSSsu8o/Pru/rulD0lsjIOH0dA4j+OjtArA4HKnypLM2ExOb9RH315yDmGt4n6F7QVHBwiFhhAhIC8ylBYDXppR7cxE370B6TqjeWWCt1Gt+Z9Q= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1570436877407978.8142771774901; Mon, 7 Oct 2019 01:27:57 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A2B67308FC4A; Mon, 7 Oct 2019 08:27:55 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 98C8C19D70; Mon, 7 Oct 2019 08:27:54 +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 5C9B01808876; Mon, 7 Oct 2019 08:27:54 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x978Rrwn029770 for ; Mon, 7 Oct 2019 04:27:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id 0F2AF5D70E; Mon, 7 Oct 2019 08:27:53 +0000 (UTC) Received: from mx1.redhat.com (ext-mx21.extmail.prod.ext.phx2.redhat.com [10.5.110.62]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 090055D70D for ; Mon, 7 Oct 2019 08:27:50 +0000 (UTC) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D075C18C4266 for ; Mon, 7 Oct 2019 08:27:49 +0000 (UTC) Received: by mail-wr1-f68.google.com with SMTP id y19so14123698wrd.3 for ; Mon, 07 Oct 2019 01:27:49 -0700 (PDT) Received: from donizetti.lan ([2001:b07:6468:f312:e876:e214:dc8e:2846]) by smtp.gmail.com with ESMTPSA id a2sm15736403wrp.11.2019.10.07.01.27.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2019 01:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=CQHTT2ICARVjACZSqmtqmWl1LrhSpxH5Z9Wzhj9FTgo=; b=QSgLSW546GUAbzGjEEk9p2q23wEq85/HX1Hwh87Gc0rtwLKWXjUuXYR8suF/AjlElW VCO6KPX013ruyRdK/9lEDSxkvtieT8Zi4m8x07jwzER2uZ/BsXXo6e+Rhz4Xzf3LPTL0 0mHcgUO2To/HCBibiAcCc2Fu1AzNIDkvwWTMiyuetvo64YkLKH7emNw2doVKkLkW+iYs 7tQ2hedwf6GRiwOLOK8gDLT6Fld5HvN5ZkEMmwS5QAEwgcUmqbo+KfbwMsy7W5b5Xh+6 efUwEAPoz5CoYP7ZX+WgqLJWxZLqnoV6k6j1NR+Liz5oovZh4wPSGuYvwGvLjGElkLE/ yOcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version:content-transfer-encoding; bh=CQHTT2ICARVjACZSqmtqmWl1LrhSpxH5Z9Wzhj9FTgo=; b=i9sPrlm8Y/f+x2DPr2HalUaxFgkJiImeWrYbkNC6bz4mDMvW9uZrm9H2MgG4fXA6Yt Suzc/o71BN0RmhnhLDr716t9qgRKrtoXUsBT15pBpXbT+7X2hmq3BZ9sEh9jIq+mYH+W e+vvQfw2zNC/TX5rJZPzYOGIiFvgOnWyohHRcvJxr3f4QwFxlmFyms5CG9jrWL8wtdAL HKLFnEUws+t/R4Y0Hb+12oNOrALLEQ3SD6VHJK91VP+vxvtDn20vsyQ+vZ/3eim2UQ12 QcufTpCMe4Ko6L7xjY/s2s0JdU3c5M91DXdhn8spV874uDpdtR39NWIpaCKR+6LV4W8e LcRg== X-Gm-Message-State: APjAAAWYkHqtFL0eO3nVCavTucfoJ2czf+YAZ9xVkFZJwtFFSzoYbWjk x4Dc1SXvqIlWk+0OlvqjSPC9CVCQ X-Google-Smtp-Source: APXvYqwC1DTIT9ewJHuekpQZ/oiycytUOyXEHNqm1f9ulVXaeRO1Sv1FlyPKUPLSYp8TCAchk5yWpg== X-Received: by 2002:adf:dcd2:: with SMTP id x18mr21321298wrm.220.1570436868079; Mon, 07 Oct 2019 01:27:48 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Mon, 7 Oct 2019 10:27:50 +0200 Message-Id: <20191007082750.25088-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Mon, 07 Oct 2019 08:27:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.62]); Mon, 07 Oct 2019 08:27:50 +0000 (UTC) for IP:'209.85.221.68' DOMAIN:'mail-wr1-f68.google.com' HELO:'mail-wr1-f68.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.25 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS) 209.85.221.68 mail-wr1-f68.google.com 209.85.221.68 mail-wr1-f68.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.62 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] tags: new event SeriesReviewed 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: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 07 Oct 2019 08:27:55 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This can be useful to send an email about series that have gotten external reviews. Signed-off-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- mods/tags.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mods/tags.py b/mods/tags.py index 0541849..59a367e 100644 --- a/mods/tags.py +++ b/mods/tags.py @@ -52,6 +52,7 @@ series cover letter, patch mail body and their replies. def __init__(self): register_handler("MessageAdded", self.on_message_added) declare_event("TagsUpdate", series=3D"message object that is updat= ed") + declare_event("SeriesReviewed", series=3D"message object that got = Reviewed-by tags for all patches") =20 # XXX: get this list through module config? =20 @@ -114,9 +115,12 @@ series cover letter, patch mail body and their replies. series_reviewers =3D _find_reviewers(series) reviewers =3D reviewers.union(series_reviewers) if num_reviewed =3D=3D series.get_num()[1] or series_reviewers: + need_event =3D not series.is_reviewed series.is_reviewed =3D True series.save() series.set_property("reviewers", list(reviewers)) + if need_event: + emit_event("SeriesReviewed", series=3Dseries) if updated: emit_event("TagsUpdate", series=3Dseries) =20 --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel