41 lines
1.3 KiB
Markdown
41 lines
1.3 KiB
Markdown
---
|
||
description: Gitea APIë¡??€?¥ì†Œ 커밋/?´ìŠˆ/PR ?„황??조회?˜ëŠ” ?Œí<C592>¬?Œë¡œ??
|
||
---
|
||
|
||
# Gitea ?€?¥ì†Œ ?„황 조회
|
||
|
||
?œë¹„???•ë³´??`.agents/workflows/services.md` 참조.
|
||
|
||
// turbo-all
|
||
|
||
## ?ˆì°¨
|
||
|
||
1. 최근 커밋 조회 (ìµœì‹ 10ê°?:
|
||
```powershell
|
||
$h = @{Authorization="token 3a01b4b15a39921572e64c413353e870d4d2161b"}
|
||
$commits = Invoke-RestMethod -Uri "https://git.variet.net/api/v1/repos/Variet/variet-agent/commits?limit=10&sha=main" -Headers $h
|
||
$commits | ForEach-Object { Write-Host "$($_.sha.Substring(0,7)) $($_.commit.message.Split("`n")[0])" }
|
||
```
|
||
|
||
2. ?´ë¦° ?´ìŠˆ 조회:
|
||
```powershell
|
||
$h = @{Authorization="token 3a01b4b15a39921572e64c413353e870d4d2161b"}
|
||
$issues = Invoke-RestMethod -Uri "https://git.variet.net/api/v1/repos/Variet/variet-agent/issues?state=open&type=issues" -Headers $h
|
||
$issues | ForEach-Object { Write-Host "#$($_.number) $($_.title)" }
|
||
```
|
||
|
||
3. Wiki ?˜ì<CB9C>´ì§€ 목ë¡<C3AB>:
|
||
```powershell
|
||
C:\ProgramData\miniforge3\envs\agent_chat\python.exe .agents\workflows\helpers\wiki_helper.py list
|
||
```
|
||
|
||
4. Wiki ?˜ì<CB9C>´ì§€ ?½ê¸°:
|
||
```powershell
|
||
C:\ProgramData\miniforge3\envs\agent_chat\python.exe .agents\workflows\helpers\wiki_helper.py read "Architecture"
|
||
```
|
||
|
||
5. Wiki ?˜ì<CB9C>´ì§€ ?…ë<E280A6>°?´íЏ:
|
||
```powershell
|
||
C:\ProgramData\miniforge3\envs\agent_chat\python.exe .agents\workflows\helpers\wiki_helper.py update "?˜ì<CB9C>´ì§€-?œëª©" /tmp/wiki_content.md
|
||
```
|