UPDATES
This commit is contained in:
Binary file not shown.
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user