You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zk...@apache.org on 2022/11/14 12:38:28 UTC

[incubator-devlake-website] 04/04: docs: use refdiff with dora

This is an automated email from the ASF dual-hosted git repository.

zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git

commit 9f0811c3a45551a4dad1bd4320663c4d9d1ff5dc
Author: abeizn <zi...@merico.dev>
AuthorDate: Mon Oct 31 17:54:54 2022 +0800

    docs: use refdiff with dora
---
 docs/Plugins/refdiff.md | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/docs/Plugins/refdiff.md b/docs/Plugins/refdiff.md
index bae13bd55..93a6cff8d 100644
--- a/docs/Plugins/refdiff.md
+++ b/docs/Plugins/refdiff.md
@@ -89,8 +89,7 @@ curl -v -XPOST http://localhost:8080/pipelines --data @- <<'JSON'
 JSON
 ```
 
-## How it gets used in DORA
-RefDiff can be called by the [DORA plugin](https://github.com/apache/incubator-devlake/tree/main/plugins/dora). RefDiff takes the project_name from taskOptions to calculate refs_commits_diffs between two consecutive deployments within the same project.
+4. Refdiff has a new subtask `calculateProjectDeploymentCommitsDiff`, which can find related deployments according to the project, and then calculate the commits diff between deployments. Such a function can be used to support the calculation of dora indicators.
  
 ```shell
 curl -v -XPOST http://localhost:8080/pipelines --data @- <<'JSON'
@@ -103,7 +102,7 @@ curl -v -XPOST http://localhost:8080/pipelines --data @- <<'JSON'
                 "options": {
                     "projectName": "xxxx",
                     "tasks": [
-                        "calculateCommitsDiff"
+                        "calculateProjectDeploymentCommitsDiff"
                     ]
                 }
             }