This commit is contained in:
2025-06-30 21:38:14 -06:00
parent b5cabd7a72
commit 4aa0c225e2
64 changed files with 614 additions and 2487 deletions

View File

@@ -30,6 +30,14 @@ def on_pre_build(config: Dict[str, Any]) -> None:
"token": os.getenv("GITEA_TOKEN")
},
# GitHub repositories
{
"repo": "lyqht/mini-qr",
"github": True
},
{
"repo": "go-gitea/gitea",
"github": True
},
{
"repo": "coder/code-server",
"github": True
@@ -77,7 +85,7 @@ def generate_repo_data(repo_config: Dict[str, Any], output_dir: Path) -> None:
if repo_config.get('github'):
api_url = f"https://api.github.com/repos/{repo}"
headers = {'Accept': 'application/vnd.github.v3+json'}
github_token = os.getenv('GITHUB_TOKEN')
github_token = "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" # Replace with your GitHub token
if github_token:
headers['Authorization'] = f'token {github_token}'
else: