WIP: adhesion, correcting forge API

This commit is contained in:
Adrien Bourmault 2023-11-03 18:13:15 +01:00
parent d829532501
commit e0780ac62b
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 2 additions and 2 deletions

View File

@ -69,9 +69,9 @@ def gestion_read(req):
def forgejo_post_issue(owner, repo, title, body, labels): def forgejo_post_issue(owner, repo, title, body, labels):
import_response: requests.Response = FORGE.post("/repos/" + owner + "/" + repo + "/issues", json={ import_response: requests.Response = FORGE.post("/repos/" + owner + "/" + repo + "/issues", json={
"body": issue.description, "body": body,
"labels": labels, "labels": labels,
"title": issue.title, "title": title,
}) })
if not(import_response.ok): if not(import_response.ok):
print("Erreur à l'envoi du ticket {} à {}".format(title, repo)) print("Erreur à l'envoi du ticket {} à {}".format(title, repo))