From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ODRLApER9GOzTwEAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 01:34:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iLtVApER9GOx3gAA9RJhRA (envelope-from ) for ; Tue, 21 Feb 2023 01:34:25 +0100 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 9E29337531 for ; Tue, 21 Feb 2023 01:34:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUGbc-0001Yh-7a; Mon, 20 Feb 2023 19:34:04 -0500 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 1pUGbZ-0001YB-Uk for guix-patches@gnu.org; Mon, 20 Feb 2023 19:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUGbZ-0005Do-LB for guix-patches@gnu.org; Mon, 20 Feb 2023 19:34:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUGbZ-0002r1-Gn for guix-patches@gnu.org; Mon, 20 Feb 2023 19:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61645] [PATCH v2 0/4] Add mumi CLI client. References: <20230220013821.27440-1-arunisaac@systemreboot.net> In-Reply-To: <20230220013821.27440-1-arunisaac@systemreboot.net> Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 00:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61645 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61645@debbugs.gnu.org Cc: Ricardo Wurmus , Arun Isaac Received: via spool by 61645-submit@debbugs.gnu.org id=B61645.167693960610890 (code B ref 61645); Tue, 21 Feb 2023 00:34:01 +0000 Received: (at 61645) by debbugs.gnu.org; 21 Feb 2023 00:33:26 +0000 Received: from localhost ([127.0.0.1]:53929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUGb0-0002pa-2i for submit@debbugs.gnu.org; Mon, 20 Feb 2023 19:33:26 -0500 Received: from mugam.systemreboot.net ([139.59.75.54]:34126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUGau-0002pL-At for 61645@debbugs.gnu.org; Mon, 20 Feb 2023 19:33:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=JDYs9Lqwp1YRPrOds1FBnbH+PMrvldM1c7yESH2an3U=; b=Rplr7N2vecb90vfi6BcYoyvtD1 IiI5ouihCrTNO3iPYX3pMW5UNqyOQzRQ+oqeLgHIwzIuVVlceJPMKht1XtTemhUVO5a1irMoQ20ta VxGKhNVKlvfx1QdLxApX4Rp4wTd0WdJ+5fqnX8C4C9j9FBBNnynB8cOwPOYGnTTnUVrXFrxhXVoad 1zP+NY+Z29LXWWBZfHFqAT5WkQliJy1RNTiweZf3BMs2NeDPXSFdy4OZy/l8naFV9YKBSL1F25XZ8 iIdLA2yyuXLt5J2P7KqFOdBEgQZsHdRZaB1s4zniPxsmsEs5x9Rnp8SMhIG90niE/qZ3vULUaTW4H m7jL16Cg==; Received: from [192.168.2.1] (port=36408 helo=steel.lan) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1pUGan-0009UP-3B; Tue, 21 Feb 2023 06:03:14 +0530 From: Arun Isaac Date: Tue, 21 Feb 2023 00:32:53 +0000 Message-Id: <20230221003253.5285-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676939664; a=rsa-sha256; cv=none; b=MoH4s1G61b26edxGMr9+6w9WT0oQudnFcEdfYhc2HbR3ejXp9CEfHofEytcHkX325m8x6G 9nUZ7QZ8UqHWxZCyorCVUlWaqFaXc6yuCyE8eg5FuC8j0OV9riWlH7HTCSRrE38o8Jva3e rkDyka5zvxa5k1nkxK+gszbmp0GHeiZ0no2Dz3IloKUqWxz201/WmStAY/LWVYxUzX/u7j 5jQkxjX/R2nFokrGo4GEx4QgpCzJVAeABI0zd9+3EqKg0HA8OaopOpdEYFMmBlG6500uw2 RBPEsA6DQkwmtELWr57ipdEE0lhtumA586qlxOxieL4p6cNKIRLq+goXNEkCnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Rplr7N2v; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676939664; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JDYs9Lqwp1YRPrOds1FBnbH+PMrvldM1c7yESH2an3U=; b=FZ4GxFHo1uGKNWwSEd2/WlWvBmpku32FfqfuDHNVUDdNLp5tHKhIMZJVjVhUZ0m7ruJGV/ kHtPLgSG75t5pUidinq13urT3L9ZXT26ETxIK9BewETntuRAoAFOm5UmoeqNHcNSizJr2y v6uAxEQS9/D9JYgnDl4EIGAVXpRzOVoTcbd44tY5FUra9gdT0dgvvu06f4Y26FJMaw5Phc Q7o0t+HakwTfbHAcfRoEArCBA4icVAadY0+5Jp8pWR47eHFywuFc7voe08y/gqLXwWY6KV FBzuIpdbBdF8pjNB+FevLm0w/+oEAKqi5iuh4seZ0yNcR0VZftUyt1EzgxPgOw== X-Spam: Yes X-Migadu-Spam-Score: 8.85 X-Spam-Score: 8.85 X-Migadu-Queue-Id: 9E29337531 X-Migadu-Spam: Yes X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=systemreboot.net header.s=default header.b=Rplr7N2v; dmarc=fail reason="SPF not aligned (relaxed)" header.from=systemreboot.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: FGvlGxR220va On second thoughts, I think I'll also include the mumi send-email patches in this bug report. To test this patchset, do the following. The following needs to be put in .mumi/config in the guix git repo. --8<---------------cut here---------------start------------->8--- ((debbugs-host . "debbugs.gnu.org") (patch-email-address . "guix-patches@gnu.org") (mumi-host . "issues.guix.gnu.org")) --8<---------------cut here---------------end--------------->8--- Then, from the guix git repo, it is possible to search for issues with $ mumi search zig is:open Set a "current issue" with $ mumi current 61645 The "current issue" is client-side state that represents the current issue one is working on. It is used to automatically infer such things as the email address to send patches to. Send patches to the current issue with $ mumi send-email file1.patch file2.patch `mumi send-email' also works correctly with new issues. We first open a new issue with $ mumi new Then, we send patches using `mumi send-email'. The first patch is sent to guix-patches@gnu.org and the remaining patches to the bug specific address---our usual debbugs dance, in other words. $ mumi send-email file1.patch file2.patch I think this patchset works, but it would be nice if someone independently verified it and provided some feedback before it is applied. Arun Isaac (4): client: Add CLI client to search for issues. client: Support checking in to a specific issue. client: Support sending email to issues. Set only GUILE_LOAD_PATH when running tests. Makefile.am | 5 +- mumi/client.scm | 257 +++++++++++++++++++++++++++++++++++++++++++++++ scripts/mumi.in | 32 +++++- tests/client.scm | 93 +++++++++++++++++ 4 files changed, 384 insertions(+), 3 deletions(-) create mode 100644 mumi/client.scm create mode 100644 tests/client.scm -- 2.38.1