Browse Source

#3364

repo-square:add "IsArchived" in repo response
tags/v1.22.12.1^2
chenyifan01 2 years ago
parent
commit
5d064f11a7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      models/repo.go

+ 2
- 0
models/repo.go View File

@@ -267,6 +267,7 @@ type Repository4Card struct {
IsFork bool
IsMirror bool
IsOwnerPrivate bool
IsArchived bool
}

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


Loading…
Cancel
Save