mirror of
https://github.com/varunsridharan/github-gitea-mirror.git
synced 2024-08-18 06:10:26 +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_password"] = "{0}".format(config['github']['accesstoken'])
|
||||
|
||||
data["service"] = 'github'
|
||||
jsonstring = json.dumps(data)
|
||||
r = session.post(giteaHost('repos/migrate'), data=jsonstring)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user