mirror of
https://github.com/varunsridharan/github-gitea-mirror.git
synced 2024-09-11 17:56:39 +03:00
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_username"] = config['github']['username']
|
||||||
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
|
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
|
||||||
|
|
||||||
|
data["service"] = 'github'
|
||||||
jsonstring = json.dumps(data)
|
jsonstring = json.dumps(data)
|
||||||
r = session.post(giteaHost('repos/migrate'), data=jsonstring)
|
r = session.post(giteaHost('repos/migrate'), data=jsonstring)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user