mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 12:20:38 +08:00
fix: using the same get_settings convention
This commit is contained in:
@ -34,7 +34,7 @@ async def handle_webhook(background_tasks: BackgroundTasks, request: Request):
|
||||
data = await request.json()
|
||||
get_logger().info(json.dumps(data))
|
||||
|
||||
webhook_secret = getattr(get_settings().bitbucket_server, "webhook_secret", None)
|
||||
webhook_secret = get_settings().get("BITBUCKET_SERVER.WEBHOOK_SECRET", None)
|
||||
if webhook_secret:
|
||||
body_bytes = await request.body()
|
||||
signature_header = request.headers.get("x-hub-signature", None)
|
||||
|
Reference in New Issue
Block a user