From 60a37158b1763871d0031ca7735b9a067732552c Mon Sep 17 00:00:00 2001 From: mrT23 Date: Mon, 26 Feb 2024 20:09:01 +0200 Subject: [PATCH] Add functionality to calculate and log PR statistics on closure --- pr_agent/servers/github_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/servers/github_app.py b/pr_agent/servers/github_app.py index 777e3b13..0b379777 100644 --- a/pr_agent/servers/github_app.py +++ b/pr_agent/servers/github_app.py @@ -211,7 +211,7 @@ def handle_closed_pr(body, event, action, log_context): api_url = pull_request.get("url") pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request) with get_logger().contextualize(pr_statistics=pr_statistics): - get_logger().info("PR-Agent closed pr statistics", analytics=True) + get_logger().info("PR-Agent statistics for closed PR", analytics=True) async def handle_request(body: Dict[str, Any], event: str):