Browse Source

Repositories: add a 'group' property (default|gitea)

master
parent
commit
2ce395b2af
  1. 1
      repo.php
  2. 1
      src/repositoriesGitea.php

1
repo.php

@ -26,6 +26,7 @@ if (!isset($_REQUEST['repo'])) {
if (isset($repoData['categoryUrl'])) {
$info['categoryUrl'] = $repoData['categoryUrl'];
}
$info['group'] = $repoData['group'] ?? 'default';
print json_encode($info, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_FORCE_OBJECT);
}

1
src/repositoriesGitea.php

@ -14,6 +14,7 @@ register_hook("get-repositories", function ($result) {
$r = array(
'path' => "{$repositoriesGitea['path']}/{$f1}/{$f2}",
'type' => 'git',
'group' => 'gitea',
);
if (array_key_exists('url', $repositoriesGitea)) {

Loading…
Cancel
Save