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
|
@@ 1141-1147 (lines=7) @@
|
| 1138 |
|
'options' => $options |
| 1139 |
|
]; |
| 1140 |
|
|
| 1141 |
|
foreach ($project->DNTagList()->setLimit(null) as $tag) { |
| 1142 |
|
$name = $tag->Name(); |
| 1143 |
|
$data['field_data'][] = [ |
| 1144 |
|
'id' => $tag->SHA(), |
| 1145 |
|
'text' => sprintf("%s", $name) |
| 1146 |
|
]; |
| 1147 |
|
} |
| 1148 |
|
|
| 1149 |
|
// show newest tags first. |
| 1150 |
|
$data['field_data'] = array_reverse($data['field_data']); |