warren830 commented on code in PR #3133:
URL: https://github.com/apache/incubator-devlake/pull/3133#discussion_r975046805


##########
plugins/dora/tasks/change_lead_time_calculator.go:
##########
@@ -78,7 +79,7 @@ func CalculateChangeLeadTime(taskCtx core.SubTaskContext) 
errors.Error {
                                pr.OrigReviewLag = 
int64(firstReviewTime.Sub(pr.CreatedDate).Minutes())
                                pr.OrigReviewTimespan = 
int64(pr.MergedDate.Sub(*firstReviewTime).Minutes())
                        }
-                       deployTime, err := getDeployTime(repoId, 
data.Options.Environment, *pr.MergedDate, db)
+                       deployTime, err := getDeployTime(repoId, 
devops.PRODUCTION, *pr.MergedDate, db)

Review Comment:
   So we will never calculate devops.Staging?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to