更改:返回tag去除前缀

This commit is contained in:
yystopf 2026-01-19 17:13:54 +08:00
parent 4b32e70cdb
commit feefd16ae1
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import (
)
var (
Version = "v2.8.7, by v1.21.0, 20251201 "
Version = "v2.8.8, by v1.21.0, 20260119 "
Tags = ""
MakeVersion = ""
)

View File

@ -23,7 +23,7 @@ func ToTag(repo *repo.Repository, gitRepo *git.Repository, t *git.Tag) (tag *api
return &api.Tag{}, err
}
return &api.Tag{
Name: t.Name,
Name: strings.TrimPrefix(t.Name, git.TagPrefix),
Message: strings.TrimSpace(t.Message),
ID: t.ID.String(),
Commit: tagCommit,