| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
| $ErrorActionPreference = "Stop" |
|
|
| $owner = "dhksrlghd" |
| $repo = "sai-museum-docent" |
| $token = $env:GITHUB_TOKEN |
|
|
| if (-not $token) { |
| Write-Host "❌ GITHUB_TOKEN 환경변수가 없습니다." -ForegroundColor Red |
| Write-Host ' $env:GITHUB_TOKEN = "github_pat_..." 먼저 설정하세요.' |
| exit 1 |
| } |
|
|
| $headers = @{ |
| "Authorization" = "Bearer $token" |
| "Accept" = "application/vnd.github+json" |
| "X-GitHub-Api-Version" = "2022-11-28" |
| } |
|
|
| |
| Write-Host "→ 저장소 description / homepage 설정..." |
| $repoBody = @{ |
| description = "작품과 당신 사이를 잇다 — 국립중앙박물관 큐레이터 해설 기반 RAG·멀티모달 박물관 도슨트" |
| homepage = "https://wangihong-k-curator.hf.space" |
| has_issues = $true |
| has_projects = $false |
| has_wiki = $false |
| } | ConvertTo-Json |
|
|
| Invoke-RestMethod -Method Patch ` |
| -Uri "https://api.github.com/repos/$owner/$repo" ` |
| -Headers $headers ` |
| -Body $repoBody ` |
| -ContentType "application/json" | Out-Null |
| Write-Host " ✓ description / homepage 적용" |
|
|
| |
| Write-Host "→ Topics 설정..." |
| $topicsBody = @{ |
| names = @( |
| "rag", |
| "multimodal", |
| "museum", |
| "korean-art", |
| "fastapi", |
| "react", |
| "chroma", |
| "clip", |
| "openai", |
| "sentence-transformers", |
| "huggingface-spaces", |
| "portfolio" |
| ) |
| } | ConvertTo-Json |
|
|
| Invoke-RestMethod -Method Put ` |
| -Uri "https://api.github.com/repos/$owner/$repo/topics" ` |
| -Headers $headers ` |
| -Body $topicsBody ` |
| -ContentType "application/json" | Out-Null |
| Write-Host " ✓ Topics 12개 적용" |
|
|
| Write-Host "" |
| Write-Host "✅ 완료. 확인: https://github.com/$owner/$repo" -ForegroundColor Green |
|
|