Compare commits
6 Commits
Author | SHA1 | Date |
---|---|---|
|
b5ec9f97db | |
|
cd938863bd | |
|
73b432ec85 | |
|
66651573cc | |
|
d7c5ec16cb | |
|
de9367738b |
|
@ -61,11 +61,13 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
|
|||
if changelog != nil {
|
||||
for label, prs := range *changelog {
|
||||
if len(prs) > 0 {
|
||||
// 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))
|
||||
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))
|
||||
|
||||
for _, pr := range prs {
|
||||
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.ID, pr.Poster.UserName)
|
||||
for _, pr := range prs {
|
||||
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName)
|
||||
}
|
||||
}
|
||||
|
||||
b.WriteString("\n")
|
||||
|
|
|
@ -45,7 +45,7 @@ func ResolveVersion(cfg *config.RepoConfig, last *gitea.Release, changelog *Chan
|
|||
if incMajor {
|
||||
nextVersion = lastVersion.IncMajor()
|
||||
} else if incMinor {
|
||||
nextVersion = lastVersion.IncMajor()
|
||||
nextVersion = lastVersion.IncMinor()
|
||||
} else if incPatch {
|
||||
nextVersion = lastVersion.IncPatch()
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue