diff --git a/pkg/perf/monitor/github.go b/pkg/perf/monitor/github.go index e09a627218..2f0c30d0a0 100644 --- a/pkg/perf/monitor/github.go +++ b/pkg/perf/monitor/github.go @@ -134,7 +134,7 @@ func (g *Client) timeOfLastCommit(pr int) (time.Time, error) { lastCommitTime := time.Time{} for _, c := range commits { if newCommitTime := c.GetCommit().GetAuthor().GetDate(); newCommitTime.After(lastCommitTime) { - lastCommitTime = newCommitTime + lastCommitTime = *newCommitTime.GetTime() } } return lastCommitTime, nil @@ -169,7 +169,8 @@ func (g *Client) timeOfLastComment(pr int, login string) (time.Time, error) { if u := c.GetUser(); u != nil { if u.GetLogin() == login { if c.GetCreatedAt().After(lastCommentTime) { - lastCommentTime = c.GetCreatedAt() + createdAt := c.GetCreatedAt() + lastCommentTime = *createdAt.GetTime() } } }