+ [task#145554] add branch on job list.

This commit is contained in:
liyang
2025-06-19 15:45:20 +08:00
parent c923fae9ca
commit c6f4f5b097
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -6,8 +6,12 @@ window.renderCell = function(result, {col, row})
if(row.data.lastStatus == 'failure' || row.data.lastStatus == 'create_fail') className = 'status-doing';
if(row.data.lastStatus == 'success') className = 'status-done';
result[0] = {html:'<span class="' + className + '">' + result[0] + '</span>'};
}
return result;
if(col.name === 'name')
{
if(typeof(row.data.branch) == 'undefined') return result;
result[1] = {html: '<span class="label success-pale mr-1">' + row.data.branch + '</span>'};
}
return result;
+1
View File
@@ -50,6 +50,7 @@ class jobZen extends job
}
else
{
$job->branch = empty($job->pipeline) ? '' : zget(json_decode($job->pipeline), 'reference', '');
$job->pipeline = $job->repoName;
}