Skip archived repos
This commit is contained in:
1 parent
1abcf37aa5
commit
1360fbab3f
1 file changed
+5
-1
+5
-1
@@ -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))
|
||||
|
||||
|
||||
Reference in new issue
Block a user