code cleanup
This commit is contained in:
parent
d00cd053e1
commit
3debb3046c
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,7 @@ from datetime import tzinfo
|
||||||
|
|
||||||
GCP_PROJECT_ID = 'llvm-premerge-checks'
|
GCP_PROJECT_ID = 'llvm-premerge-checks'
|
||||||
|
|
||||||
|
|
||||||
class RepoStats:
|
class RepoStats:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -62,6 +63,7 @@ class RepoStats:
|
||||||
|
|
||||||
return "\n".join(results)
|
return "\n".join(results)
|
||||||
|
|
||||||
|
|
||||||
def get_reverts_per_day(repo_path: str, max_age: datetime.datetime) -> RepoStats:
|
def get_reverts_per_day(repo_path: str, max_age: datetime.datetime) -> RepoStats:
|
||||||
stats = RepoStats()
|
stats = RepoStats()
|
||||||
repo = git.Repo(repo_path)
|
repo = git.Repo(repo_path)
|
||||||
|
|
Loading…
Reference in a new issue