Compare commits

...

6 Commits
v1 ... main

Author SHA1 Message Date
Lee SangMin b5ec9f97db Update src/action.go 2023-07-16 22:08:51 +09:00
Lee SangMin cd938863bd Update src/action.go 2023-07-16 22:07:16 +09:00
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 7 additions and 5 deletions

View File

@ -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")

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 {