[fix]. Log rejected non-allowlisted repos
All checks were successful
ci / test (push) Successful in 26s
ci / publish (push) Successful in 1m22s

This commit is contained in:
Space-Banane
2026-05-22 23:13:28 +02:00
parent b036a16d3c
commit 729ea4aae4
3 changed files with 36 additions and 0 deletions

View File

@@ -313,6 +313,13 @@ async def gitea_webhook(
)
if repo not in settings.allowed_repo_set:
logger.info(
"Webhook ignored: repo not in ALLOWED_REPOS repo=%s pr=%s comment_id=%s sender=%s",
repo,
pr_number,
comment_id,
sender_username,
)
return {"accepted": False, "reason": "repo not allowed"}
inserted = persist_webhook_event(