From 753fb1b2cd956bb08561aa51115b58af19a9b375 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Fri, 13 Aug 2021 17:35:29 +0800 Subject: [PATCH] * Add list function for mr control(staging). --- module/mr/control.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/mr/control.php b/module/mr/control.php index fe9515a75c..53b84ee298 100644 --- a/module/mr/control.php +++ b/module/mr/control.php @@ -30,6 +30,14 @@ class mr extends control $this->display(); } + public function list($repoID) + { + $gitlab = $this->mr->getGitlabProjectByRepo($repoID); + $resp = $this->mr->apiGetMRList($gitlab->gitlabID, $gitlab->projectID); + a($resp); + return $resp; + } + public function create() { } @@ -38,7 +46,6 @@ class mr extends control { } - public function update() { }