mirror of
https://github.com/go-gitea/gitea
synced 2025-09-15 05:08:13 +00:00
Remove the duplicated function GetTags (#35375)
This PR removes the GetTags function from the git module and keeps only GetTagInfos. All previous usages of GetTags have been replaced with database-based tag functions. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@@ -282,11 +282,8 @@ func (opts FindReleasesOptions) ToOrders() string {
|
||||
|
||||
// GetTagNamesByRepoID returns a list of release tag names of repository.
|
||||
func GetTagNamesByRepoID(ctx context.Context, repoID int64) ([]string, error) {
|
||||
listOptions := db.ListOptions{
|
||||
ListAll: true,
|
||||
}
|
||||
opts := FindReleasesOptions{
|
||||
ListOptions: listOptions,
|
||||
ListOptions: db.ListOptionsAll,
|
||||
IncludeDrafts: true,
|
||||
IncludeTags: true,
|
||||
HasSha1: optional.Some(true),
|
||||
|
Reference in New Issue
Block a user