* finish task #6893.

This commit is contained in:
wangyidong
2020-02-24 17:10:35 +08:00
parent c001e75780
commit c4dc4b6545
11 changed files with 430 additions and 171 deletions
+4 -7
View File
@@ -72,7 +72,7 @@ class git extends control
$path = helper::safe64Decode($path);
if(common::hasPriv('repo', 'view'))
{
$repos = $this->loadModel('repo')->listAll();
$repos = $this->loadModel('repo')->getList();
foreach($repos as $repo)
{
if($repo->SCM != 'Git') continue;
@@ -121,11 +121,10 @@ class git extends control
}
$parsedObjects = array('stories' => array(), 'tasks' => array(), 'bugs' => array());
$this->loadModel('repo');
foreach($parsedLogs as $log)
{
$allCommands = [];
$scm = $this->app->loadClass('scm');
$objects = $scm->parseComment($log->msg, $allCommands);
$objects = $this->repo->parseComment($log->msg);
if($objects)
{
@@ -184,9 +183,7 @@ class git extends control
$parsedFiles[$action][] = ltrim($path, '/');
}
$allCommands = [];
$scm = $this->app->loadClass('scm');
$objects = $scm->parseComment($message, $allCommands);
$objects = $this->loadModel('repo')->parseComment($message);
if($objects)
{