WIP: adhesion, correcting forge API

This commit is contained in:
Adrien Bourmault 2023-11-03 18:34:21 +01:00
parent 102afd9938
commit daa8adf358
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 1 deletions

View File

@ -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,