mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-11 22:06:40 +10:00
do not show forked repo
This commit is contained in:
@@ -136,7 +136,8 @@ func githubReposWithToken(token: String, failureHandler: ((Reason, String?) -> V
|
||||
URLString = repoInfo["html_url"] as? String,
|
||||
description = repoInfo["description"] as? String,
|
||||
createdAtString = repoInfo["created_at"] as? String,
|
||||
isPrivate = repoInfo["private"] as? Bool
|
||||
isPrivate = repoInfo["private"] as? Bool,
|
||||
isFork = repoInfo["fork"] as? Bool
|
||||
else {
|
||||
continue
|
||||
}
|
||||
@@ -145,6 +146,10 @@ func githubReposWithToken(token: String, failureHandler: ((Reason, String?) -> V
|
||||
continue
|
||||
}
|
||||
|
||||
guard !isFork else {
|
||||
continue
|
||||
}
|
||||
|
||||
let createdAt = NSDate.dateWithISO08601String(createdAtString)
|
||||
|
||||
let repo = GithubRepo(ID: ID, name: name, fullName: fullName, URLString: URLString, description: description, createdAt: createdAt)
|
||||
|
||||
Reference in New Issue
Block a user