Files
agent_guide/.agents/workflows/check-gitea.md

1.2 KiB

description
description
Gitea API로 저장소 커밋/이슈/PR 현황을 조회하는 워크플로우

Gitea 저장소 현황 조회

서비스 정보는 .agents/workflows/services.md 참조.

// turbo-all

절차

  1. 최근 커밋 조회 (최신 10개):
$h = @{Authorization="token {{GITEA_TOKEN}}"}
$commits = Invoke-RestMethod -Uri "{{GITEA_BASE_URL}}/api/v1/repos/{{GITEA_OWNER}}/{{GITEA_REPO}}/commits?limit=10&sha=main" -Headers $h
$commits | ForEach-Object { Write-Host "$($_.sha.Substring(0,7)) $($_.commit.message.Split("`n")[0])" }
  1. 열린 이슈 조회:
$h = @{Authorization="token {{GITEA_TOKEN}}"}
$issues = Invoke-RestMethod -Uri "{{GITEA_BASE_URL}}/api/v1/repos/{{GITEA_OWNER}}/{{GITEA_REPO}}/issues?state=open&type=issues" -Headers $h
$issues | ForEach-Object { Write-Host "#$($_.number) $($_.title)" }
  1. Wiki 페이지 목록:
python .agents\workflows\helpers\wiki_helper.py list
  1. Wiki 페이지 읽기:
python .agents\workflows\helpers\wiki_helper.py read "Architecture"
  1. Wiki 페이지 업데이트:
python .agents\workflows\helpers\wiki_helper.py update "페이지-제목" /tmp/wiki_content.md