mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 02:45:18 +00:00
Add functionality to calculate and log PR statistics on closure
This commit is contained in:
parent
4921c26432
commit
60a37158b1
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ def handle_closed_pr(body, event, action, log_context):
|
||||||
api_url = pull_request.get("url")
|
api_url = pull_request.get("url")
|
||||||
pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request)
|
pr_statistics = get_git_provider()(pr_url=api_url).calc_pr_statistics(pull_request)
|
||||||
with get_logger().contextualize(pr_statistics=pr_statistics):
|
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):
|
async def handle_request(body: Dict[str, Any], event: str):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue