diff --git a/pkg/notes/document/document.go b/pkg/notes/document/document.go index 5af518c7383..8fa80c0a092 100644 --- a/pkg/notes/document/document.go +++ b/pkg/notes/document/document.go @@ -306,7 +306,7 @@ func New( doc.CVEList = append(doc.CVEList, newcve) } - if note.DoNotPublish { + if !note.IsMapped && note.DoNotPublish { logrus.Debugf("Skipping PR %d as (marked to not be published)", pr) continue } diff --git a/pkg/notes/notes.go b/pkg/notes/notes.go index 87bfb98298b..831b0c78d02 100644 --- a/pkg/notes/notes.go +++ b/pkg/notes/notes.go @@ -136,6 +136,9 @@ type ReleaseNote struct { // DataFields a key indexed map of data fields DataFields map[string]ReleaseNotesDataField `json:"-"` + + // IsMapped is set if the note got modified from a map + IsMapped bool `json:"is_mapped,omitempty"` } type Documentation struct { @@ -1146,6 +1149,8 @@ func (rn *ReleaseNote) ApplyMap(noteMap *ReleaseNotesMap, markdownLinks bool) er logrus.WithFields(logrus.Fields{ "pr": rn.PrNumber, }).Debugf("Applying map to note") + rn.IsMapped = true + reRenderMarkdown := false if noteMap.ReleaseNote.Author != nil { rn.Author = *noteMap.ReleaseNote.Author