diff --git a/lib/scm/gitlab.class.php b/lib/scm/gitlab.class.php index 899dda0aeb..f8b59d0150 100644 --- a/lib/scm/gitlab.class.php +++ b/lib/scm/gitlab.class.php @@ -1063,4 +1063,16 @@ class gitlabRepo if(empty($MR->changes_count)) $MR->has_conflicts = 0; return $MR; } + + public function getCommitCountByDate($startDate, $endDate) + { + $branches = $this->branch('all'); + $statistics = array(); + foreach($branches as $branch) + { + $commits = $this->fetch('commits', array(), true); + a($commits); die; + } + return $statistics; + } } diff --git a/lib/scm/scm.class.php b/lib/scm/scm.class.php index 9b3300f8a5..366f5bb78e 100644 --- a/lib/scm/scm.class.php +++ b/lib/scm/scm.class.php @@ -367,6 +367,11 @@ class scm { return $this->engine->pipelines(); } + + public function getCommitCountByDate($startDate, $endDate) + { + return $this->engine->getCommitCountByDate($startDate, $endDate); + } } /**