feat: Generic gitea addr
This commit is contained in:
parent
12fbf56cd4
commit
c23b845605
@ -16,7 +16,6 @@ parse==1.12.0
|
||||
pbr==5.3.1
|
||||
pycparser==2.19
|
||||
PyJWT==1.7.1
|
||||
pytea==0.0
|
||||
python-dateutil==2.8.0
|
||||
pytodoist==2.1.3
|
||||
requests==2.22.0
|
||||
@ -29,3 +28,4 @@ terminaltables==3.1.0
|
||||
typing-inspect==0.4.0
|
||||
urllib3==1.25.3
|
||||
wcwidth==0.1.7
|
||||
PyTEA==0.1.2
|
||||
|
@ -54,7 +54,7 @@ userJson = gitea.get("/user").json()
|
||||
user, _ = GiteaUser.Schema().load(userJson)
|
||||
|
||||
for giteaProject in config['gitea_projects']:
|
||||
logger.info("Scanning ... https://git.cynarski.pl/" + giteaProject)
|
||||
logger.info("Scanning ... "+ config['auth']['gitea_url'] + giteaProject)
|
||||
totdoistProject = config['gitea_projects'][giteaProject]
|
||||
issuesJson = json.loads(gitea.get("/repos/"+giteaProject.strip()+"/issues" , params={"state": "open", "page": 0}).text)
|
||||
todoProject = todo.get_project(totdoistProject)
|
||||
@ -75,7 +75,7 @@ for giteaProject in config['gitea_projects']:
|
||||
pprint(issue.title)
|
||||
logger.info("Adding ... %r", issue.title)
|
||||
task = todoProject.add_task(issue.title)
|
||||
task.add_note("https://git.cynarski.pl/"+giteaProject+"/issues/"+str(issue.number))
|
||||
task.add_note(config['auth']['gitea_url']+giteaProject+"/issues/"+str(issue.number))
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user