Add commit pattern, code churn, risky commit, and velocity analyzers
This commit is contained in:
@@ -44,8 +44,8 @@ class VelocityAnalyzer:
|
||||
recent_commits = commits[:10]
|
||||
older_commits = commits[10:20]
|
||||
|
||||
recent_avg = sum(1 for _ in recent_commits) / max(1, len(recent_commits))
|
||||
older_avg = sum(1 for _ in older_commits) / max(1, len(older_commits))
|
||||
recent_avg = len(recent_commits) / max(1, len(recent_commits))
|
||||
older_avg = len(older_commits) / max(1, len(older_commits))
|
||||
|
||||
if recent_avg > older_avg * 1.1:
|
||||
velocity_trend = "increasing"
|
||||
|
||||
Reference in New Issue
Block a user