From 3a39f999d81d08f7e7c2e94a9bfad3ac63ab0ac3 Mon Sep 17 00:00:00 2001 From: "Wilson E. Husin" Date: Tue, 9 Feb 2021 13:03:13 -0800 Subject: [PATCH] Display DoNotPublish on edit view Signed-off-by: Wilson E. Husin --- cmd/krel/cmd/release_notes.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/krel/cmd/release_notes.go b/cmd/krel/cmd/release_notes.go index c4cf45312ab..46a375c68e2 100644 --- a/cmd/krel/cmd/release_notes.go +++ b/cmd/krel/cmd/release_notes.go @@ -1208,10 +1208,11 @@ func fixReleaseNotes(workDir string, releaseNotes *notes.ReleaseNotes) error { Feature: note.Feature, ActionRequired: note.ActionRequired, Documentation: note.Documentation, + DoNotPublish: note.DoNotPublish, } if noteMaps != nil { - fmt.Println("✨ Note contents are modified with a map") + fmt.Println("✨ Note contents was previously modified with a map") for _, noteMap := range noteMaps { if err := note.ApplyMap(noteMap); err != nil { return errors.Wrapf(err, "applying notemap for PR #%d", pr) @@ -1225,6 +1226,7 @@ func fixReleaseNotes(workDir string, releaseNotes *notes.ReleaseNotes) error { fmt.Println(pointIfChanged("Areas", note.Areas, originalNote.Areas), note.Areas) fmt.Println(pointIfChanged("Feature", note.Feature, originalNote.Feature), note.Feature) fmt.Println(pointIfChanged("ActionRequired", note.ActionRequired, originalNote.ActionRequired), note.ActionRequired) + fmt.Println(pointIfChanged("DoNotPublish", note.DoNotPublish, originalNote.DoNotPublish), note.DoNotPublish) // TODO: Implement note.Documentation // Wrap the note for better readability on the terminal