Browse Source

#981

update
tags/v1.21.12.2^2
chenyifan01 4 years ago
parent
commit
e6bda98499
1 changed files with 0 additions and 31 deletions
  1. +0
    -31
      models/repo_tag.go

+ 0
- 31
models/repo_tag.go View File

@@ -46,37 +46,6 @@ type TagsDetail struct {
RepoList []Repository
}

type RepositoryForTag struct {
TagId int64
TagName string
Repo Repository
}

//
//type RepositoryForTag struct {
// TagId int64
// TagName string
// ID int64
// Name string
// Description string
// NumWatches int
// NumStars int
// NumForks int
// Topics []string
// Link string
// OwnerName string
//}

//// Link returns the repository link
//func (repo *RepositoryForTag) FullPath() string {
// return setting.AppSubURL + "/" + repo.FullName()
//}
//
//// FullName returns the repository full name
//func (repo *RepositoryForTag) FullName() string {
// return repo.OwnerName + "/" + repo.Name
//}

func GetTagByID(id int64) (*OfficialTag, error) {
r := &OfficialTag{
ID: id,


Loading…
Cancel
Save