mirror of
https://github.com/ChristianSch/gitea-release-drafter.git
synced 2026-03-02 12:20:51 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73b432ec85 | ||
|
|
66651573cc | ||
|
|
d7c5ec16cb
|
||
|
|
de9367738b
|
@@ -65,7 +65,7 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
|
|||||||
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
|
fmt.Fprintf(&b, "## %s\n\n", strings.Title(label))
|
||||||
|
|
||||||
for _, pr := range prs {
|
for _, pr := range prs {
|
||||||
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.ID, pr.Poster.UserName)
|
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, pr.Poster.UserName)
|
||||||
}
|
}
|
||||||
|
|
||||||
b.WriteString("\n")
|
b.WriteString("\n")
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ func ResolveVersion(cfg *config.RepoConfig, last *gitea.Release, changelog *Chan
|
|||||||
if incMajor {
|
if incMajor {
|
||||||
nextVersion = lastVersion.IncMajor()
|
nextVersion = lastVersion.IncMajor()
|
||||||
} else if incMinor {
|
} else if incMinor {
|
||||||
nextVersion = lastVersion.IncMajor()
|
nextVersion = lastVersion.IncMinor()
|
||||||
} else if incPatch {
|
} else if incPatch {
|
||||||
nextVersion = lastVersion.IncPatch()
|
nextVersion = lastVersion.IncPatch()
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user