From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OHgyJyHM+WRoJgEA9RJhRA:P1 (envelope-from ) for ; Thu, 07 Sep 2023 15:12:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OHgyJyHM+WRoJgEA9RJhRA (envelope-from ) for ; Thu, 07 Sep 2023 15:12:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 47B3E569AF for ; Thu, 7 Sep 2023 15:12:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=eHcNiMOY; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694092321; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=a8iT7IbLGZwIWZFLj/aOIu9+7BJO/vZ/XkGi3bn/giI=; b=ir9GbqjM+AHX5Fsqv6f3gC+WAphAc/qeUCopqkBtW9Dy54qgBg19dNgVs947nTre9pMHe4 lcjIj+42ry6ICovLKQ1RAh/+4QgfWy20wJCLitmKJVOTnbbQM9PTGZe7oyNuT9cUtdIX1e 55FWPQ+fj9rOm6Ti6bOa5raIMjv4hxZJineHHpmcAJyMfqrqPQX9ZGhyc/3cJFbgrrzUzM 24M7xiHo2lAYUB5FuummnHuC1ezBZIG8BLa7RgysXpzjqOfTwXEDm1ONeRN1FwlqVHGkAK /XBLBVU8+vOQo+juI8a4X7ou+ErjbVaJ8jHFgsY+9Xl4u2Kv0n7fYm+Bq8MQNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694092321; a=rsa-sha256; cv=none; b=Q4Df+CGYtGOKeQ7ov27ImmbSK49uE7QXnmO4Xg0qnPffrXC4HZf2ArkSv+aeJ3BCCjtBwQ 6W4D6zJbsI1BupCQViBh5WRgHgIkwxDtVNJvuQyBwQB69Ts72oBc7Z3DW1k71Gl0v6Q4vF 1cY5Y3Tz+GJ5BL8dXUiqHW9MYrBzaigCzlgJ0ArWygNWwyfsopwDFEk0dPOTAIW5iZ0slT qWYjNOK8h5YOApy8l27TYXKRHrFaRLAK0SNbcVXPX6ipi5okuCCenMEo47dNKVs2TewUle yz4gGeAENCQqo7KKg/Ayz0vKL0JiMk3OeCszhld1zbtQy4L76kIHRM9kPXzk+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=eHcNiMOY; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeElO-0000Po-P0; Thu, 07 Sep 2023 09:09:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qeElM-0000Jw-UO for guix-devel@gnu.org; Thu, 07 Sep 2023 09:09:36 -0400 Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeElK-0001oK-0H for guix-devel@gnu.org; Thu, 07 Sep 2023 09:09:36 -0400 Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-76ef8b91a72so58608485a.0 for ; Thu, 07 Sep 2023 06:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694092172; x=1694696972; darn=gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=a8iT7IbLGZwIWZFLj/aOIu9+7BJO/vZ/XkGi3bn/giI=; b=eHcNiMOYL9dFtVWLvbl+LamvRz1O3UbKTZdGtxg1pG9u1SGhOCRZ4RxwlvkP+f3mpt cfFaZBZ7odiyiYvox3a9MV9Cyqycg25oSiisNRxAHetU7I6nu6Bqx/41vtljnPjNv5Ry uZdTxHTlE5b+MRdMT5hPZaiTjFIDniSblH8DBAlpQVa72sPYd+W8l2KsXJtFFpbqwpOT dNssl6n+4ct11CcIkzXRWVwz2CCIIqDNAOMpD34XL/sl/c+jmm2mhcynDzqKEo9I2BFY KtT5zPM74zX7qMoGGfy0ymMT9Q07/0JDdmtccVNrv5ujerirHLkNCEeZCcsW8+2QbpX0 4N7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1694092172; x=1694696972; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=a8iT7IbLGZwIWZFLj/aOIu9+7BJO/vZ/XkGi3bn/giI=; b=W8XAQgthd25LlZNSqtedOcHkF4EXHFokGHnvRGcQeCp0XuH12PEQrymwuOOuQt9mt/ VeMJwUtZmtMjzoOY2BklTtPXIldtQKuyvXSTPaBdIeDI+NEiDCXGJhrGNjvprGyJp7SG g+KBInVwOCEd2aZHwB1TP+NsblKe+EMT1dfZbF1REZN1+ovznh91MUlprF5sBqCy2G0a fnDK3Yo4h6WNTPW72n5sp2Hasf8CZCUHfTSh4dCg5/fdy7l0emdxxqiYDdQZ1kEi7+8w YeCV1QUvA6jXhHJx6tQA/U4UWW4kjuZzItGHqJTs7Fmh0v2EVPX4Thvpivz2Queigpxn cnJg== X-Gm-Message-State: AOJu0YwBrpaIZBnlGeunfM/95mvguTr16LIosQPW42SrqwGkswKI652r gwT9ys8koW5dJ+eeyKfrO+hcZ5i+qIWq4w== X-Google-Smtp-Source: AGHT+IGh7d1pFKWSsKsmebFh+yAVih2opsbvaeuhbpYRZZavMbkFfjZLho+DeBIMBwTBPZ1UTvwkdA== X-Received: by 2002:a05:620a:15a2:b0:76e:601d:a724 with SMTP id f2-20020a05620a15a200b0076e601da724mr19182076qkk.34.1694092172082; Thu, 07 Sep 2023 06:09:32 -0700 (PDT) Received: from hurd (dsl-159-106.b2b2c.ca. [66.158.159.106]) by smtp.gmail.com with ESMTPSA id g10-20020a05620a13ca00b0076f18be9a64sm5773285qkl.81.2023.09.07.06.09.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 06:09:31 -0700 (PDT) From: Maxim Cournoyer To: Felix Lechner Cc: Giovanni Biscuolo , Simon Tournier , guix-devel@gnu.org Subject: Re: [workflow] Automatically close bug report when a patch is committed References: <8734zrn1sc.fsf@xelera.eu> <87edjb5le5.fsf@gmail.com> <86o7ien856.fsf@gmail.com> <87h6o6fdgv.fsf@xelera.eu> Date: Thu, 07 Sep 2023 09:09:30 -0400 In-Reply-To: (Felix Lechner's message of "Thu, 7 Sep 2023 04:58:03 -0700") Message-ID: <877cp2nn91.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qk1-x734.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -8.07 X-Spam-Score: -8.07 X-Migadu-Queue-Id: 47B3E569AF X-TUID: 5qqB/uh3feQL --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Felix Lechner writes: > Hi Gio', > > On Thu, Sep 7, 2023 at 4:08=E2=80=AFAM Giovanni Biscuolo wr= ote: >> >> close the bugs that are listed in >> the commit message > > Perhaps you'd like to see Debian's hook [1] for the Salsa web forge > (which is controversially based on Gitlab). > > The regex does not work properly for more than two bugs, however, so > here is my proposed fix. [2] The merge request was closed > automatically when I began contributing to Guix. Did you see my message about integrating a commit-hook similar to what Gerrit uses? It produces unique ID such as: --8<---------------cut here---------------start------------->8--- Change-Id: I9b86781869d80eda347659f0c009b8dfe09bdfd0 --8<---------------cut here---------------end--------------->8--- at the bottom (it's a git trailer) of a commit message. Being unique, these could be used to match if a patch on the tracker has been merged in the master branch. Attached is what the hook looks like. The random 'Change-Id' is generated via --8<---------------cut here---------------start------------->8--- random=3D$({ git var GIT_COMMITTER_IDENT ; echo "$refhash" ; cat "$1"; } | git hash-object --stdin) --8<---------------cut here---------------end--------------->8--- --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=commit-msg Content-Transfer-Encoding: base64 IyEvYmluL3NoCiMgRnJvbSBHZXJyaXQgQ29kZSBSZXZpZXcgMy42LjEKIwojIFBhcnQgb2YgR2Vy cml0IENvZGUgUmV2aWV3IChodHRwczovL3d3dy5nZXJyaXRjb2RlcmV2aWV3LmNvbS8pCiMKIyBD b3B5cmlnaHQgKEMpIDIwMDkgVGhlIEFuZHJvaWQgT3BlbiBTb3VyY2UgUHJvamVjdAojCiMgTGlj ZW5zZWQgdW5kZXIgdGhlIEFwYWNoZSBMaWNlbnNlLCBWZXJzaW9uIDIuMCAodGhlICJMaWNlbnNl Iik7CiMgeW91IG1heSBub3QgdXNlIHRoaXMgZmlsZSBleGNlcHQgaW4gY29tcGxpYW5jZSB3aXRo IHRoZSBMaWNlbnNlLgojIFlvdSBtYXkgb2J0YWluIGEgY29weSBvZiB0aGUgTGljZW5zZSBhdAoj CiMgaHR0cDovL3d3dy5hcGFjaGUub3JnL2xpY2Vuc2VzL0xJQ0VOU0UtMi4wCiMKIyBVbmxlc3Mg cmVxdWlyZWQgYnkgYXBwbGljYWJsZSBsYXcgb3IgYWdyZWVkIHRvIGluIHdyaXRpbmcsIHNvZnR3 YXJlCiMgZGlzdHJpYnV0ZWQgdW5kZXIgdGhlIExpY2Vuc2UgaXMgZGlzdHJpYnV0ZWQgb24gYW4g IkFTIElTIiBCQVNJUywKIyBXSVRIT1VUIFdBUlJBTlRJRVMgT1IgQ09ORElUSU9OUyBPRiBBTlkg S0lORCwgZWl0aGVyIGV4cHJlc3Mgb3IgaW1wbGllZC4KIyBTZWUgdGhlIExpY2Vuc2UgZm9yIHRo ZSBzcGVjaWZpYyBsYW5ndWFnZSBnb3Zlcm5pbmcgcGVybWlzc2lvbnMgYW5kCiMgbGltaXRhdGlv bnMgdW5kZXIg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