feat: find prev/last tag #32
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
获取prev/last tag方式为多种
refname
: 通过git tag --sort=-v:refname
方式获取creatordate
通过git tag --sort=-creatordate
方式获取describe
: 通过git describe --abbrev=0
方式获取link
cmd
tagType
获取tag方式0 refname
默认方式1 creatordate
通过创建时间2 describe
提交记录最新标记refer issues #31
不太常用go,有写不对,敬请指导