parse commit coments actions on log level and save

This commit is contained in:
aaronchen2k
2020-02-01 16:29:07 +08:00
parent a565b96d88
commit 01a282a40c
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -110,13 +110,13 @@ class scm
$newArr = explode(",", $entityIds);
$allCommands[$entityType][$action] = array_keys(array_flip($currArr) + array_flip($newArr));
if ($action === 'story') {
if ($entityType === 'story') {
$stories = array_merge($stories, $newArr);
}
if ($action === 'task') {
if ($entityType === 'task') {
$tasks = array_merge($tasks, $newArr);
}
if ($action === 'bug') {
if ($entityType === 'bug') {
$bugs = array_merge($bugs, $newArr);
}
@@ -124,7 +124,7 @@ class scm
}
}
return array('stories' => join(',', $stories), 'tasks' => join(',', $tasks), 'bugs' => join(',', $bugs));
return array('stories' => $stories, 'tasks' => $tasks, 'bugs' => $bugs);
}
/**
+1 -1
View File
@@ -72,7 +72,7 @@ class git extends control
$path = helper::safe64Decode($path);
if(common::hasPriv('repo', 'view'))
{
$repos = $this->loadModel('repo')->getAllRepos();
$repos = $this->loadModel('repo')->listAll();
foreach($repos as $repo)
{
if($repo->SCM != 'Git') continue;