total-contributions: Exclude dependabot commits.

This commit is contained in:
Tim Abbott 2022-03-28 22:23:30 -07:00 committed by Tim Abbott
parent a234fe9c4c
commit 7cbe9665b6
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ def add_log(committer_dict: Dict[str, int], input: List[str]) -> None:
for dataset in input:
committer_name = dataset.split("\t")[1]
commit_count = int(dataset.split("\t")[0])
if committer_name.endswith("[bot]"):
# Exclude dependabot[bot] and other GitHub bots.
continue
committer_dict[committer_name] += commit_count