diff --git a/docs/LOGBOOK.md b/docs/LOGBOOK.md index 8641b740..b8c3254d 100644 --- a/docs/LOGBOOK.md +++ b/docs/LOGBOOK.md @@ -5,21 +5,28 @@ --- -## 📍 當前狀態 (2026-04-05 ADR-059 Gitea Webhook 遷移完成) +## 📍 當前狀態 (2026-04-05 ADR-059 Gitea Webhook 遷移完成 + 全計劃執行完畢) | 項目 | 狀態 | Commit | |------|------|--------| -| gitea_webhook.py: Header 全改 X-Gitea-* | ✅ | 2336442 | -| gitea_webhook_service.py: 移除 github_api_service 依賴 | ✅ | 2336442 | -| 所有殘留 github_ log key 清除 | ✅ | 2336442 | -| test_gitea_webhook.py: 10/10 通過 | ✅ | 2336442 | +| config.py: GITHUB_WEBHOOK_SECRET → GITEA_WEBHOOK_SECRET | ✅ | 6777532 | +| gitea_webhook_service.py: 新建,移除 CI diagnosis | ✅ | 6777532 | +| gitea_webhook.py: Router, X-Gitea-* headers | ✅ | b2c0148 | +| main.py: 已掛載 gitea_webhook_v1 | ✅ | 2336442 | +| test_gitea_webhook.py: 10/10 通過 | ✅ | 59e7879 | | 03-secrets.yaml: GITEA_WEBHOOK_SECRET 佔位 | ✅ | 2336442 | -| cd.yaml: GITEA_WEBHOOK_SECRET 注入步驟 | ✅ | 2336442 | +| cd.yaml: GITEA_WEBHOOK_SECRET 自動注入步驟 | ✅ | 2336442 | | ADR-059: 架構決策文件 | ✅ | 2336442 | +| 舊 github_webhook.py / github_webhook_service.py: 已刪除 | ✅ | — | +| Push to Gitea | ✅ | 59e7879 | -**待統帥操作**: -- Gitea Actions secret: `GITEA_WEBHOOK_SECRET` 設定 -- Gitea UI Webhook 設定: `https://awoooi.wooo.work/api/v1/webhooks/gitea` +**待統帥操作** (部署後手動): +1. Gitea Actions secret: `GITEA_WEBHOOK_SECRET` 設定 (與 K8s Secret 值相同) +2. Gitea UI Webhook: `http://192.168.0.110:3001/wooo/awoooi` → Settings → Webhooks → Add + - Target URL: `https://awoooi.wooo.work/api/v1/webhooks/gitea` + - Content-Type: `application/json` ← 必須明確選擇 + - Secret: `GITEA_WEBHOOK_SECRET` 值 + - Trigger: Pull Request events + Push events ---