From daa8adf358ce796039317df05025017a217b50d3 Mon Sep 17 00:00:00 2001 From: "Adrien Bourmault (neox)" Date: Fri, 3 Nov 2023 18:34:21 +0100 Subject: [PATCH] WIP: adhesion, correcting forge API --- controle_adhesion/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controle_adhesion/main.py b/controle_adhesion/main.py index 40f59be..c95b9ae 100755 --- a/controle_adhesion/main.py +++ b/controle_adhesion/main.py @@ -69,7 +69,7 @@ def gestion_read(req): def forgejo_post_issue(owner, repo, title, body, labels): gt = pygitea.API(GITEA_URL, token=gestion_get_secret()) - import_response: requests.Response = gt.post("/repos/" + owner + "/" + repo + "/issues", data={ + import_response: requests.Response = gt.post("/repos/" + owner + "/" + repo + "/issues", json={ "body": body, "labels": labels, "title": title,