|
|
|
@@ -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, |
|
|
|
|