gitea-git-repos: update deprecated API path

This is updated to "orgs" (with an s) according to [1]

[1] https://try.gitea.io/api/swagger#/organization/createOrgRepo

Change-Id: I968248a19eec5dbbb492c74286598ac7ecd4aeb8
This commit is contained in:
Ian Wienand 2020-07-17 10:02:41 +10:00
parent 2f7959d5f2
commit 12328379b7

View File

@ -135,7 +135,7 @@ class Gitea(object):
'readme': 'Default',
}
resp = self.post(
'/api/v1/org/{org}/repos'.format(org=org),
'/api/v1/orgs/{org}/repos'.format(org=org),
json=repo_properties)
self.log("Created repo:", project['project'])