* Adjust save rule for code commit.

This commit is contained in:
caoyanyi
2023-12-28 17:17:58 +08:00
parent 8fa354ce84
commit d666acac54
4 changed files with 19 additions and 15 deletions
+3 -1
View File
@@ -156,11 +156,13 @@ $canViewRevision = common::hasPriv('repo', 'revision');
$linkedCommits = array();
foreach($linkCommits as $commit)
{
if(empty($commit->revision)) continue;
$revision = substr($commit->revision, 0, 10);
$linkedCommits[] = $canViewRevision ? a
(
set::href(createLink('repo', 'revision', "repoID={$commit->repo}&objectID={$task->execution}&revision={$commit->revision}")),
"#$MRID $linkMRTitle",
"#$revision",
setData(array('app' => $app->tab))
) : div($revision . ' ' . $commit->comment);
}