diff --git a/scripts/metrics/repo.py b/scripts/metrics/repo.py index 81a8f2b..c8280fa 100755 --- a/scripts/metrics/repo.py +++ b/scripts/metrics/repo.py @@ -24,6 +24,7 @@ from datetime import tzinfo GCP_PROJECT_ID = 'llvm-premerge-checks' + class RepoStats: def __init__(self): @@ -62,6 +63,7 @@ class RepoStats: return "\n".join(results) + def get_reverts_per_day(repo_path: str, max_age: datetime.datetime) -> RepoStats: stats = RepoStats() repo = git.Repo(repo_path)