Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

total-contributions: Exclude dependabot commits.

Tim Abbott7cbe9665b668
diff --git a/tools/total-contributions b/tools/total-contributions
index 91f338f4c52..a624d617258 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