Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
mrT23 committed Mar 11, 2024
1 parent a27ad0f commit 33a911d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pr_agent/servers/gitlab_webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}))

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']:
url = data['object_attributes'].get('url')
Expand Down

0 comments on commit 33a911d

Please sign in to comment.