forked from team/site
1
0
Fork 0

add readonly token to gitea endpoint

This commit is contained in:
Ben Harris 2023-03-27 16:53:30 -04:00
parent 22f7876659
commit f75e6b5977
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ $parser = wiki::factory(true);
<div class="col-md-6">
<h2 id="projects">~projects~</h2>
<?php foreach (json_decode(file_get_contents("https://tildegit.org/api/v1/orgs/team/repos?limit=100")) ?? [] as $repo):
<?php // readonly token, gitea changed perms on this endpoint
$repo_url = "https://tildegit.org/api/v1/orgs/team/repos?limit=100&token=448c748ee0082f46ccf246daf759874ca5d067cb";
foreach (json_decode(file_get_contents($repo_url)) ?? [] as $repo):
if ($repo->archived) continue; ?>
<div class="list-group">