Merge branch 'mg/code-comments/status-update-preserves-edited' of _OKE5H2PQKOUfzFFDuD4FA/default/CODE/gitness (#296)

This commit is contained in:
Marko Gacesa 2023-08-09 17:19:20 +00:00 committed by Harness
commit ecd1e28e9a

View File

@ -73,12 +73,11 @@ func (c *Controller) CommentStatus(
return nil
}
now := time.Now().UnixMilli()
act.Edited = now
act.Resolved = nil
act.ResolvedBy = nil
now := time.Now().UnixMilli()
if in.Status != enum.PullReqCommentStatusActive {
// In the future if we add more comment resolved statuses
// we'll add the ResolvedReason field and put the reason there.