mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-13 11:25:18 +00:00
fix: using the same get_settings convention
This commit is contained in:
parent
7a5acb29ac
commit
e25980f141
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue