Skip to content

Commit

Permalink
Merge pull request #1902 from wilsonehusin/display-do-not-publish
Browse files Browse the repository at this point in the history
Display DoNotPublish on edit view
  • Loading branch information
k8s-ci-robot committed Feb 10, 2021
2 parents 083d462 + 3a39f99 commit 6bd1216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/krel/cmd/release_notes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 6bd1216

Please sign in to comment.