mirror of
https://github.com/varunsridharan/github-gitea-mirror.git
synced 2025-02-24 22:23:45 +08:00
Moved To A Config Function.
This commit is contained in:
parent
ca18d9d61a
commit
b41f29bc24
1 changed files with 4 additions and 3 deletions
|
@ -5,8 +5,8 @@ import requests
|
|||
import json
|
||||
import sys
|
||||
import os
|
||||
from helper import giteaSetRepoTopics,giteaSession,giteaCreateRepo,ghApi,giteaCreateOrg,giteaGetUser
|
||||
config = json.loads(open(os.path.expanduser("./config.json")).read().strip())
|
||||
from helper import getConfig, giteaSetRepoTopics,giteaSession,giteaCreateRepo,ghApi,giteaCreateOrg,giteaGetUser
|
||||
config = getConfig()
|
||||
session = giteaSession()
|
||||
gh = ghApi()
|
||||
|
||||
|
@ -62,4 +62,5 @@ for repo in gh.get_user().get_gists():
|
|||
topics.append('public-{0}-gist'.format(repo_owner))
|
||||
giteaSetRepoTopics(repo_owner,m["repo_name"],topics)
|
||||
|
||||
print(" ")
|
||||
print(" ")
|
||||
exit(1)
|
Loading…
Reference in a new issue