From 7cbe9665b6680d0fe5603a0904296cb8adb0fe4c Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 28 Mar 2022 22:23:30 -0700 Subject: [PATCH] total-contributions: Exclude dependabot commits. --- tools/total-contributions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/total-contributions b/tools/total-contributions index 91f338f4c5..a624d61725 100755 --- a/tools/total-contributions +++ b/tools/total-contributions @@ -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