|
|
|
@ -6,14 +6,14 @@ $descriptions = json_decode(file_get_contents("./descriptions.json"), true);
|
|
|
|
|
$projects = [];
|
|
|
|
|
|
|
|
|
|
print("Gitea > equestria.dev\n");
|
|
|
|
|
$gitea = json_decode(file_get_contents("https://git.equestria.dev/api/v1/orgs/equestria.dev/repos?limit=1000"), true);
|
|
|
|
|
$gitea = json_decode(file_get_contents("https://git.equestria.dev/api/v1/orgs/equestria.dev/repos?limit=1000", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true);
|
|
|
|
|
|
|
|
|
|
foreach ($gitea as $project) {
|
|
|
|
|
print(" " . $project["name"] . "\n");
|
|
|
|
|
$languages = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/languages"), true);
|
|
|
|
|
$languages = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/languages", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true);
|
|
|
|
|
|
|
|
|
|
$readme_dl = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/contents/README.md"), true);
|
|
|
|
|
$commit = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/commits?limit=1"), true)[0];
|
|
|
|
|
$readme_dl = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/contents/README.md", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true);
|
|
|
|
|
$commit = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/equestria.dev/$project[name]/commits?limit=1", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true)[0];
|
|
|
|
|
|
|
|
|
|
if (isset($readme_dl)) {
|
|
|
|
|
$readme = base64_decode($readme_dl["content"]);
|
|
|
|
@ -42,13 +42,13 @@ foreach ($gitea as $project) {
|
|
|
|
|
|
|
|
|
|
print("Gitea > minteck.org\n");
|
|
|
|
|
|
|
|
|
|
$minteckorg = json_decode(file_get_contents("https://git.equestria.dev/api/v1/orgs/minteck.org/repos?limit=1000"), true);
|
|
|
|
|
$minteckorg = json_decode(file_get_contents("https://git.equestria.dev/api/v1/orgs/minteck.org/repos?limit=1000", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true);
|
|
|
|
|
|
|
|
|
|
foreach ($minteckorg as $project) {
|
|
|
|
|
print(" " . $project["name"] . "\n");
|
|
|
|
|
$languages = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/minteck.org/$project[name]/languages"), true);
|
|
|
|
|
$languages = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/minteck.org/$project[name]/languages", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true);
|
|
|
|
|
|
|
|
|
|
$commit = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/minteck.org/$project[name]/commits?limit=1"), true)[0];
|
|
|
|
|
$commit = json_decode(file_get_contents("https://git.equestria.dev/api/v1/repos/minteck.org/$project[name]/commits?limit=1", false, stream_context_create(["ssl"=>["verify_peer"=>false,"verify_peer_name"=>false]])), true)[0];
|
|
|
|
|
|
|
|
|
|
$projects[] = [
|
|
|
|
|
"id" => md5("minteck.org-gitea/" . $project["id"]),
|
|
|
|
|