Append comments instead of setting
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
parent
dc4a27d109
commit
4c76cf5a76
|
@ -252,7 +252,7 @@ func (diff *Diff) LoadComments(issue *Issue, currentUser *User) error {
|
||||||
for _, section := range file.Sections {
|
for _, section := range file.Sections {
|
||||||
for _, line := range section.Lines {
|
for _, line := range section.Lines {
|
||||||
if comments, ok := lineCommits[int64(line.LeftIdx*-1)]; ok {
|
if comments, ok := lineCommits[int64(line.LeftIdx*-1)]; ok {
|
||||||
line.Comments = comments
|
line.Comments = append(line.Comments, comments...)
|
||||||
}
|
}
|
||||||
if comments, ok := lineCommits[int64(line.RightIdx)]; ok {
|
if comments, ok := lineCommits[int64(line.RightIdx)]; ok {
|
||||||
line.Comments = append(line.Comments, comments...)
|
line.Comments = append(line.Comments, comments...)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user