WIP: adhesion, correcting forge API

This commit is contained in:
Adrien Bourmault 2023-11-03 18:40:44 +01:00
parent 7dbd20deee
commit 875d8c95f6
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ def gestion_read(req):
def forgejo_post_issue(owner, repo, title, body, labels): def forgejo_post_issue(owner, repo, title, body, labels):
gt = pygitea.API(GITEA_URL, token=git_get_secret()) gt = pygitea.API(GITEA_URL, token=git_get_secret())
gt_version = gt.get('/version').json() gt_version = gt.get('/version').json()
print("Connected to Gitea, version: " + str(gt_version['version'])) print("Connected to Forgejo, version: " + str(gt_version['version']))
import_response: requests.Response = gt.post("/repos/" + owner + "/" + repo + "/issues", json={ import_response: requests.Response = gt.post("/repos/" + owner + "/" + repo + "/issues", json={
"body": body, "body": body,
"labels": labels, "labels": labels,