WIP: adhesion, correcting forge API
This commit is contained in:
parent
7dbd20deee
commit
875d8c95f6
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue