warren830 commented on code in PR #310:
URL: 
https://github.com/apache/incubator-devlake-website/pull/310#discussion_r1012603743


##########
docs/Metrics/DeployTime.md:
##########
@@ -16,11 +16,26 @@ The time it takes from when a PR is merged to when it is 
deployed.
 
 
 ## How is it calculated?
-You can define `deployment` based on your actual practice. For a full list of 
`deployment`'s definitions that DevLake support, please refer to [Deployment 
Frequency](/docs/Metrics/DeploymentFrequency.md).
+1. You can define `deployment` based on your actual practice. For a full list 
of `deployment`'s definitions that DevLake support, please refer to [Deployment 
Frequency](/docs/Metrics/DeploymentFrequency.md).
+2. Connect pr/mr to the right `deployment`
+![](/img/Metrics/pr-commit-deployment-relation.jpeg)
+   - Find the [commits diff](the link to refdiff plugin) between two 
consecutive deployments by deployments' commit_sha 
+   - under the same scope and environment (in terms of 
TESTING/STAGING/PRODUCTION)
+for example, here, we will get commit-2 and commit-3 by calculating 
commits_diff before deployment-1 and deployment-2,

Review Comment:
   fixed



-- 
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