Added Argument To Auto Clone Wiki
of the mirroring repository.
This commit is contained in:
parent
daae6c1392
commit
f7da8c093e
|
@ -69,14 +69,17 @@ def giteaSetRepoStar(owner,repo_name):
|
|||
else:
|
||||
print(' ---> Error : Unable To Star The Repository')
|
||||
|
||||
def giteaCreateRepo(data,isPrivate):
|
||||
def giteaCreateRepo(data,isPrivate,isRepository):
|
||||
if isPrivate:
|
||||
data["auth_username"] = config['github']['username']
|
||||
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
|
||||
|
||||
if isRepository:
|
||||
data["wiki"] = True
|
||||
data["auth_token"] = "{0}".format(config['github']['accesstoken'])
|
||||
|
||||
|
||||
data["service"] = 'github'
|
||||
data["wiki"] = True
|
||||
data["auth_password"] = "{0}".format(config['github']['accesstoken'])
|
||||
|
||||
jsonstring = json.dumps(data)
|
||||
r = session.post(giteaHost('repos/migrate'), data=jsonstring)
|
||||
|
|
Reference in a new issue