diff --git a/cmd/issue_show.go b/cmd/issue_show.go index 6f894f29..b13924fd 100644 --- a/cmd/issue_show.go +++ b/cmd/issue_show.go @@ -122,6 +122,9 @@ func printDiscussions(discussions []*gitlab.Discussion) { indentHeader, indentNote := "", "" commented := "commented" + if ! time.Time(*note.CreatedAt).Equal(time.Time(*note.UpdatedAt)) { + commented = "updated comment" + } if !discussion.IndividualNote { indentNote = " " @@ -140,7 +143,7 @@ func printDiscussions(discussions []*gitlab.Discussion) { %s%s `, indentHeader, - indentHeader, note.Author.Username, commented, time.Time(*note.CreatedAt).String(), + indentHeader, note.Author.Username, commented, time.Time(*note.UpdatedAt).String(), indentNote, note.Body) } } diff --git a/cmd/mr_show.go b/cmd/mr_show.go index dfe95558..55aae672 100644 --- a/cmd/mr_show.go +++ b/cmd/mr_show.go @@ -112,6 +112,9 @@ func printMRDiscussions(discussions []*gitlab.Discussion) { indentHeader, indentNote := "", "" commented := "commented" + if ! time.Time(*note.CreatedAt).Equal(time.Time(*note.UpdatedAt)) { + commented = "updated comment" + } if !discussion.IndividualNote { indentNote = " " @@ -130,7 +133,7 @@ func printMRDiscussions(discussions []*gitlab.Discussion) { %s%s `, indentHeader, - indentHeader, note.Author.Username, commented, time.Time(*note.CreatedAt).String(), + indentHeader, note.Author.Username, commented, time.Time(*note.UpdatedAt).String(), indentNote, note.Body) } }