1
0
mirror of https://github.com/ChristianSch/gitea-release-drafter.git synced 2026-03-01 20:00:52 +00:00

Compare commits

...

4 Commits

Author SHA1 Message Date
ChristianSch
73b432ec85 Merge pull request #4 from raucao/bugfix/minor_versions 2023-04-06 11:56:04 +02:00
ChristianSch
66651573cc Merge pull request #3 from raucao/bugfix/pull_request_id 2023-04-06 11:55:04 +02:00
Râu Cao
d7c5ec16cb Fix minor version incrementation 2023-03-28 17:23:27 +02:00
Râu Cao
de9367738b Use Index attribute instead of internal ID 2023-03-28 17:05:58 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ func updateOrCreateDraftRelease(a *Action, cfg *config.RepoConfig) (*gitea.Relea
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)
fmt.Fprintf(&b, "* %s (#%d) @%s\n", pr.Title, pr.Index, 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.IncMajor()
nextVersion = lastVersion.IncMinor()
} else if incPatch {
nextVersion = lastVersion.IncPatch()
} else {