code/control/GitDispatcher.php 1 location
|
@@ 261-267 (lines=7) @@
|
258 |
|
*/ |
259 |
|
protected function getGitTags($project) { |
260 |
|
$tags = []; |
261 |
|
foreach ($project->DNTagList()->setLimit(null) as $tag) { |
262 |
|
$tags[] = [ |
263 |
|
'id' => $tag->SHA(), |
264 |
|
'ref_name' => $tag->Name(), |
265 |
|
'title' => $tag->Name() |
266 |
|
]; |
267 |
|
} |
268 |
|
return $tags; |
269 |
|
} |
270 |
|
|
code/control/DNRoot.php 1 location
|
@@ 1145-1151 (lines=7) @@
|
1142 |
|
'options' => $options |
1143 |
|
]; |
1144 |
|
|
1145 |
|
foreach ($project->DNTagList()->setLimit(null) as $tag) { |
1146 |
|
$name = $tag->Name(); |
1147 |
|
$data['field_data'][] = [ |
1148 |
|
'id' => $tag->SHA(), |
1149 |
|
'text' => sprintf("%s", $name) |
1150 |
|
]; |
1151 |
|
} |
1152 |
|
|
1153 |
|
// show newest tags first. |
1154 |
|
$data['field_data'] = array_reverse($data['field_data']); |