fix: sort comments correctly
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
0a51038cb3
commit
69afab4d44
1 changed files with 4 additions and 1 deletions
|
@ -51,9 +51,12 @@ func GetComments(config *Config, client *gitea.Client, prID int64) map[string]([
|
|||
splitComments := make(map[string]([]*gitea.PullReviewComment))
|
||||
for _, reviewID := range reviews {
|
||||
comments := RetrieveComments(config, client, prID, reviewID)
|
||||
sort.Sort(ByLineNum(comments))
|
||||
splitComments = SplitByFile(splitComments, comments)
|
||||
}
|
||||
|
||||
for _, comments := range splitComments {
|
||||
sort.Sort(ByLineNum(comments))
|
||||
}
|
||||
|
||||
return splitComments
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue