varunsridharan / github-gitea-mirror

Simple Python Script To Mirror Repository From Github To Gitea
MIT License
177 stars 20 forks source link

Like how to mirror the releases of github #11

Open okoling opened 11 months ago

okoling commented 11 months ago

Like how to mirror the releases of github, I try to add

def giteaCreateRepo(data,isPrivate,isRepository):
    if isPrivate:
        data["auth_username"]  = config['github']['username']
        data["auth_password"]  = "{0}".format(config['github']['accesstoken'])

    if isRepository:
        data["service"] = 'github'
        data["wiki"] = True
        data["releases"] = True
        data["issues"] = True
        data["labels"] = True
        data["pull_requests"] = True
        data["auth_token"]  = "{0}".format(config['github']['accesstoken'])

can you tell me some way?