Skip to content

Commit

Permalink
update message for full changes when is the first release
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Panato <[email protected]>
  • Loading branch information
cpanato authored and alexellis committed Oct 7, 2021
1 parent 3e7e02d commit ede7834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/release_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func updateReleaseNotes(client *github.Client, owner, repo, latestTag string) er
if workingReleases.PreviousTag != "" {
releaseDiff = fmt.Sprintf("Changes: https://github.com/%s/%s/compare/%s...%s", owner, repo, workingReleases.PreviousTag, workingReleases.CurrentTag)
} else {
releaseDiff = fmt.Sprintf("Changes: https://github.com/%s/%s/compare/%s...%s", owner, repo, *includedCommits[len(includedCommits)-1].SHA, workingReleases.CurrentTag)
releaseDiff = fmt.Sprintf("Changes: https://github.com/%s/%s/commits/%s", owner, repo, workingReleases.CurrentTag)
}
output = fmt.Sprintf("%s\n%s\n\nGenerated by [Derek](https://github.com/alexellis/derek/)\n", output, releaseDiff)

Expand Down

0 comments on commit ede7834

Please sign in to comment.