mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-14 20:05:18 +00:00
log
This commit is contained in:
parent
a27ad0feb6
commit
33a911da4c
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ async def gitlab_webhook(background_tasks: BackgroundTasks, request: Request):
|
||||||
return JSONResponse(status_code=status.HTTP_401_UNAUTHORIZED, content=jsonable_encoder({"message": "unauthorized"}))
|
return JSONResponse(status_code=status.HTTP_401_UNAUTHORIZED, content=jsonable_encoder({"message": "unauthorized"}))
|
||||||
|
|
||||||
data = await request.json()
|
data = await request.json()
|
||||||
get_logger().info("GitLab data", json.dumps(data))
|
get_logger().info("GitLab data", artifact=data)
|
||||||
|
|
||||||
if data.get('object_kind') == 'merge_request' and data['object_attributes'].get('action') in ['open', 'reopen']:
|
if data.get('object_kind') == 'merge_request' and data['object_attributes'].get('action') in ['open', 'reopen']:
|
||||||
url = data['object_attributes'].get('url')
|
url = data['object_attributes'].get('url')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue