From patchwork Fri Mar 7 11:00:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain GARBAGE X-Patchwork-Id: 39753 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 4F17027BBE9; Fri, 7 Mar 2025 11:01:21 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 551C727BBE2 for ; Fri, 7 Mar 2025 11:01:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tqVS0-0002P7-TS; Fri, 07 Mar 2025 06:01:08 -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 1tqVRv-00029M-AP for guix-patches@gnu.org; Fri, 07 Mar 2025 06:01:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqVRv-0007dD-0C for guix-patches@gnu.org; Fri, 07 Mar 2025 06:01:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=CKbQGm/D8ioeDbz8teOXm8yywlwvIwfLUhuqTh9z7XY=; b=WsI5BUXRgMW6yH3kaVs2p/2o1qWObD18Qafi0HZs299ysSujhOT49t7z09E6JMKPR+aXUFFjF1rYCHStTid9BgunOo0jlLI9HlPII1u1tlP+c4J8qHZ4t362RUHdu65Fm62H0Llqz1zIyqr7Q9wLkKsIbC5KRBFWYaHgU+WwPsQEBfkw1vTnKBZehThep2y8dMOADzInEVfeWd/gdiPlwla6FDI3jeJ1cG5SehITEt5X02vS3NkHdHlvraGBaeeBQbva7N1YABh7QgKzwgJ6lK3cW2uLPwo3ccGmtgGN1ZxzCwy7nJnc5NTTee03lrDo+PrTav5tIwdy9/HkH/jHsQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tqVRu-0000oc-Sx for guix-patches@gnu.org; Fri, 07 Mar 2025 06:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76809] [PATCH Cuirass 2/3] forgejo: Support for Agit workflow. Resent-From: Romain GARBAGE Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 07 Mar 2025 11:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76809 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76809@debbugs.gnu.org Cc: ludovic.courtes@inria.fr, Romain GARBAGE Received: via spool by 76809-submit@debbugs.gnu.org id=B76809.17413452453084 (code B ref 76809); Fri, 07 Mar 2025 11:01:02 +0000 Received: (at 76809) by debbugs.gnu.org; 7 Mar 2025 11:00:45 +0000 Received: from localhost ([127.0.0.1]:47149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tqVRc-0000nf-Gq for submit@debbugs.gnu.org; Fri, 07 Mar 2025 06:00:44 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:48252) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tqVRZ-0000mz-Fa for 76809@debbugs.gnu.org; Fri, 07 Mar 2025 06:00:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CKbQGm/D8ioeDbz8teOXm8yywlwvIwfLUhuqTh9z7XY=; b=icAahLgVFI+TmLPOvRD7+PRonrBMAj8ccDKNevGsIpFlGrk9WwIDJgsR gXFnxW2BZTaXMSBZc7u9DwtFrRELgcg3Ondb+fGZh9AmKxsB/F3lJNKMc UegljyuE697bEVXbI7RNdKo18h7z7q2/Hfcs0Gb/cc1WxWjISc5SKS5O4 k=; Authentication-Results: mail2-relais-roc.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=romain.garbage@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.14,229,1736809200"; d="scan'208";a="211751973" Received: from unknown (HELO guix-A102.bordeaux.inria.fr) ([193.50.110.221]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2025 12:00:34 +0100 From: Romain GARBAGE Date: Fri, 7 Mar 2025 12:00:24 +0100 Message-ID: <20250307110025.12928-2-romain.garbage@inria.fr> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250307110025.12928-1-romain.garbage@inria.fr> References: <20250307110025.12928-1-romain.garbage@inria.fr> MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This commit adds support for the Agit workflow (see https://forgejo.org/docs/latest/user/agit-support/). In this case the provided "ref" is not an existing branch and the channel can't be fetched. * src/cuirass/forges/forgejo.scm (forgejo-pull-request->specification): Build channel from commit instead of branch. * tests/forgejo.scm: Update test. --- src/cuirass/forges/forgejo.scm | 3 ++- tests/forgejo.scm | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cuirass/forges/forgejo.scm b/src/cuirass/forges/forgejo.scm index 73ab609..40d1279 100644 --- a/src/cuirass/forges/forgejo.scm +++ b/src/cuirass/forges/forgejo.scm @@ -94,6 +94,7 @@ (forgejo-repository-reference-repository (forgejo-pull-request-base pull-request)))) (source-branch (forgejo-repository-reference-ref source-repo-reference)) + (source-commit (forgejo-repository-reference-sha source-repo-reference)) (source-url (forgejo-repository-url (forgejo-repository-reference-repository source-repo-reference))) (id (forgejo-pull-request-number pull-request)) @@ -129,7 +130,7 @@ (cons* (channel (name project-name) (url source-url) - (branch source-branch)) + (commit source-commit)) %default-channels)) (priority priority) (period period) diff --git a/tests/forgejo.scm b/tests/forgejo.scm index 2718bb3..ba3675a 100644 --- a/tests/forgejo.scm +++ b/tests/forgejo.scm @@ -76,7 +76,7 @@ (cons* (channel (name 'project-name) (url "https://forgejo.instance.test/source-repo/fork-name.git") - (branch "test-branch")) + (commit "582af40e8a059fa05c7048a7ac4f2eccbbd0183b")) %default-channels)) (priority %default-jobset-options-priority) (period %default-jobset-options-period)