mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 12:20:38 +08:00
log event
This commit is contained in:
@ -252,15 +252,15 @@ async def handle_request(body: Dict[str, Any], event: str):
|
|||||||
|
|
||||||
# handle comments on PRs
|
# handle comments on PRs
|
||||||
if action == 'created':
|
if action == 'created':
|
||||||
get_logger().debug(f'Request body', artifact=body)
|
get_logger().debug(f'Request body', artifact=body, event=event)
|
||||||
await handle_comments_on_pr(body, event, sender, sender_id, action, log_context, agent)
|
await handle_comments_on_pr(body, event, sender, sender_id, action, log_context, agent)
|
||||||
# handle new PRs
|
# handle new PRs
|
||||||
elif event == 'pull_request' and action != 'synchronize' and action != 'closed':
|
elif event == 'pull_request' and action != 'synchronize' and action != 'closed':
|
||||||
get_logger().debug(f'Request body', artifact=body)
|
get_logger().debug(f'Request body', artifact=body, event=event)
|
||||||
await handle_new_pr_opened(body, event, sender, sender_id, action, log_context, agent)
|
await handle_new_pr_opened(body, event, sender, sender_id, action, log_context, agent)
|
||||||
# handle pull_request event with synchronize action - "push trigger" for new commits
|
# handle pull_request event with synchronize action - "push trigger" for new commits
|
||||||
elif event == 'pull_request' and action == 'synchronize':
|
elif event == 'pull_request' and action == 'synchronize':
|
||||||
get_logger().debug(f'Request body', artifact=body)
|
get_logger().debug(f'Request body', artifact=body, event=event)
|
||||||
await handle_push_trigger_for_new_commits(body, event, sender, sender_id, action, log_context, agent)
|
await handle_push_trigger_for_new_commits(body, event, sender, sender_id, action, log_context, agent)
|
||||||
elif event == 'pull_request' and action == 'closed':
|
elif event == 'pull_request' and action == 'closed':
|
||||||
if get_settings().get("CONFIG.ANALYTICS_FOLDER", ""):
|
if get_settings().get("CONFIG.ANALYTICS_FOLDER", ""):
|
||||||
|
Reference in New Issue
Block a user