From e0780ac62b792b7519323a45f1824c712e73e1cd Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Fri, 3 Nov 2023 18:13:15 +0100 Subject: [PATCH] WIP: adhesion, correcting forge API --- controle_adhesion/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index a7bd0d9..4fb1beb 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -69,9 +69,9 @@ def gestion_read(req): def forgejo_post_issue(owner, repo, title, body, labels): import_response: requests.Response = FORGE.post("/repos/" + owner + "/" + repo + "/issues", json={ - "body": issue.description, + "body": body, "labels": labels, - "title": issue.title, + "title": title, }) if not(import_response.ok): print("Erreur à l'envoi du ticket {} à {}".format(title, repo))