collecting release notes

feature/optional_link
Karolis Rusenas 2018-06-24 23:29:06 +01:00
parent 4f7dbd3e90
commit 1aa85dc253
1 changed files with 6 additions and 0 deletions

View File

@ -73,6 +73,9 @@ func checkVersionedRelease(newVersion *types.Version, repo *types.Repository, na
plan.CurrentVersion = imageRef.Tag()
plan.Config = keelCfg
shouldUpdateRelease = true
if imageDetails.ReleaseNotes != "" {
plan.ReleaseNotes = append(plan.ReleaseNotes, imageDetails.ReleaseNotes)
}
log.WithFields(log.Fields{
"parsed_image": imageRef.Remote(),
@ -131,6 +134,9 @@ func checkVersionedRelease(newVersion *types.Version, repo *types.Repository, na
plan.CurrentVersion = currentVersion.String()
plan.Config = keelCfg
shouldUpdateRelease = true
if imageDetails.ReleaseNotes != "" {
plan.ReleaseNotes = append(plan.ReleaseNotes, imageDetails.ReleaseNotes)
}
log.WithFields(log.Fields{
"container_image": imageRef.Repository(),