WIP: adhesion, forgejo API

This commit is contained in:
Adrien Bourmault 2023-11-04 13:18:30 +01:00
parent 0e0527645d
commit 909710fa6c
Signed by: neox
GPG Key ID: 2974E1D5F25DFCC8
1 changed files with 1 additions and 4 deletions

View File

@ -73,10 +73,7 @@ def forgejo_post_issue(owner, repo, title, body, labels):
"labels":labels, "labels":labels,
"title":title "title":title
}) })
if not(import_response.ok): return import_response
print("Erreur à l'envoi du ticket {} à {}".format(title, repo))
raise(Exception)
return import_response.ok
def gestion_adduser(req): def gestion_adduser(req):
response = requests.put('https://gestion.a-lec.org/api/user/import', response = requests.put('https://gestion.a-lec.org/api/user/import',