Skip archived repos

This commit is contained in:
Nikolai R Kristiansen committed 2019-01-15 12:16:24 +01:00
1 parent 1abcf37aa5
commit 1360fbab3f
1 file changed
+5 -1
+5 -1
View File
@@ -51,7 +51,8 @@ class Lab2Hub:
repos[name] = {
'ssh_url': r.ssh_url,
'name': name
'name': name,
'archived': r.archived
}
return repos
@@ -105,6 +106,9 @@ class Lab2Hub:
else:
gh_repo = gh_repo_data[name]
if gh_repo['archived']:
continue
self.lab2hub(gl_repo, gh_repo)
logger.info('[OK]: {}'.format(name))