Compare commits

..

No commits in common. "main" and "v1" have entirely different histories.
main ... v1

2 changed files with 5 additions and 7 deletions

View File

@ -61,13 +61,11 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
if changelog != nil {
for label, prs := range *changelog {
if len(prs) > 0 {
if !strings.Contains(label, "Status/") {
// TODO: here we should take the label from the config and only default to the name
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
// TODO: here we should take the label from the config and only default to the name
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
for _, pr := range prs {
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName)
}
for _, pr := range prs {
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.ID, pr.Poster.UserName)
}
b.WriteString("\n")

View File

@ -45,7 +45,7 @@ func ResolveVersion(cfg *config.RepoConfig, last *gitea.Release, changelog *Chan
if incMajor {
nextVersion = lastVersion.IncMajor()
} else if incMinor {
nextVersion = lastVersion.IncMinor()
nextVersion = lastVersion.IncMajor()
} else if incPatch {
nextVersion = lastVersion.IncPatch()
} else {