feat(webhook): Task 5 — tests GitHub→Gitea (ADR-059)
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled
- test_gitea_webhook.py: 10 tests, X-Gitea-* headers - conftest.py: GITEA_WEBHOOK_SECRET / GITEA_ALLOWED_REPOS Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 萃取
|
||||
|
||||
Reference in New Issue
Block a user