Skip to content

Commit aef0135

Browse files
committed
Add the upcoming tag to the tag list
1 parent b99e91c commit aef0135

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/changelog.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ func getContent(items []Item, owner string, repo string, version string) string
179179
prs := make(map[int]string)
180180
url := "https://github.com/" + owner + "/" + repo
181181

182+
if version != "Unreleased" {
183+
tags = append(tags, fmt.Sprintf("[%s]: %s/releases/tag/%[1]s\n", version, url))
184+
}
185+
182186
content := "# Changelog\n\nThis project adheres to [Semantic Versioning].\n\n"
183187
content += fmt.Sprintf("## [%s] (%s)\n", version, time.Now().Format("2006-01-02"))
184188

0 commit comments

Comments
 (0)