|
|
@@ -267,6 +267,7 @@ type Repository4Card struct { |
|
|
IsFork bool |
|
|
IsFork bool |
|
|
IsMirror bool |
|
|
IsMirror bool |
|
|
IsOwnerPrivate bool |
|
|
IsOwnerPrivate bool |
|
|
|
|
|
IsArchived bool |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
type RepositoryShow struct { |
|
|
type RepositoryShow struct { |
|
|
@@ -304,6 +305,7 @@ func (repo *Repository) ToCardFormat() *Repository4Card { |
|
|
IsFork: repo.IsFork, |
|
|
IsFork: repo.IsFork, |
|
|
IsMirror: repo.IsMirror, |
|
|
IsMirror: repo.IsMirror, |
|
|
IsOwnerPrivate: isOwnerPrivate, |
|
|
IsOwnerPrivate: isOwnerPrivate, |
|
|
|
|
|
IsArchived: repo.IsArchived, |
|
|
} |
|
|
} |
|
|
return result |
|
|
return result |
|
|
} |
|
|
} |
|
|
|