Added service
argument when creating new github repository
This commit is contained in:
parent
8660121457
commit
3554952bb6
|
@ -74,6 +74,7 @@ def giteaCreateRepo(data,isPrivate):
|
|||
data["auth_username"] = config['github']['username']
|
||||
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
|
||||
|
||||
data["service"] = 'github'
|
||||
jsonstring = json.dumps(data)
|
||||
r = session.post(giteaHost('repos/migrate'), data=jsonstring)
|
||||
|
||||
|
|
Reference in a new issue