From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Closing issues from commits Date: Mon, 20 Aug 2018 11:52:31 +0200 Message-ID: <87bm9xgyao.fsf@gnu.org> References: <87zhxm8hao.fsf@fastmail.com> <87tvnu8g6c.fsf@fastmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frh2m-0005ng-Mk for guix-devel@gnu.org; Mon, 20 Aug 2018 06:04:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frgrQ-0008NV-VM for guix-devel@gnu.org; Mon, 20 Aug 2018 05:52:36 -0400 In-Reply-To: <87tvnu8g6c.fsf@fastmail.com> (Marius Bakke's message of "Thu, 16 Aug 2018 17:49:47 +0200") 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+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Marius Bakke Cc: guix-devel@gnu.org Hello Marius, Marius Bakke skribis: > Marius Bakke writes: > >> Hello, >> >> It would be convenient (for me, at least) to have a server-side git hook >> that can close debbugs issues. It would grep the commit message for >> '^Fixes: ' and automatically send an >> email to control@debbugs.gnu.org with the message 'close $1 $commit_id'. >> >> Is this something that we want and can deploy? > > Derp. I realized I can do this with a post-push hook. > > I'll make it next time I need it and submit it here :-) Would be nice! A server-side hook would also be welcome in any case. It turns out that Mailutils in Git has bindings for Guile 2.2, which we can use to send email, so writing such a hook wouldn=E2=80=99t be too hard. :-) We could have a tiny program that regularly pulls from Git, browses the latest commits, and sends email as appropriate. Would be a fun hack. (A script like this would be easier than having a server-side hook on Savannah, especially if we need to store credentials for the SMTP server.) Thanks, Ludo=E2=80=99.