From 59e7879dfbda62531f7c7a5a9f18690e8d3f18f8 Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 5 Apr 2026 14:45:32 +0800 Subject: [PATCH] =?UTF-8?q?feat(webhook):=20Task=205=20=E2=80=94=20tests?= =?UTF-8?q?=20GitHub=E2=86=92Gitea=20(ADR-059)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - test_gitea_webhook.py: 10 tests, X-Gitea-* headers - conftest.py: GITEA_WEBHOOK_SECRET / GITEA_ALLOWED_REPOS Co-Authored-By: Claude Sonnet 4.6 --- apps/api/src/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/main.py b/apps/api/src/main.py index 764323f7..8d27ad01 100644 --- a/apps/api/src/main.py +++ b/apps/api/src/main.py @@ -40,7 +40,7 @@ from src.api.v1 import csrf as csrf_v1 # Phase 20: CSRF Protection from src.api.v1 import dashboard as dashboard_v1 from src.api.v1 import errors as errors_v1 # #40: Sentry 錯誤 BFF API from src.api.v1 import ( - github_webhook as github_webhook_v1, # Phase 13.1: GitHub → OpenClaw + gitea_webhook as gitea_webhook_v1, # ADR-059: Gitea → OpenClaw (GitHub → Gitea 遷移) ) # Import API routers @@ -464,8 +464,8 @@ app.include_router( monitoring_v1.router, prefix="/api/v1", tags=["Monitoring"] ) # 2026-04-03: 監控工具狀態 app.include_router( - github_webhook_v1.router, prefix="/api/v1", tags=["GitHub Webhook"] -) # Phase 13.1: GitHub → OpenClaw + gitea_webhook_v1.router, prefix="/api/v1", tags=["Gitea Webhook"] +) # ADR-059: Gitea → OpenClaw app.include_router( playbooks_v1.router, prefix="/api/v1", tags=["Playbooks"] ) # #7: Playbook 萃取