diff --git a/internal/api/controller/pullreq/comment_status.go b/internal/api/controller/pullreq/comment_status.go index ee57577f4..d6818ab41 100644 --- a/internal/api/controller/pullreq/comment_status.go +++ b/internal/api/controller/pullreq/comment_status.go @@ -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.