mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
tools: Treat hosted weblate as a bot in contributor counts.
This commit is contained in:
@@ -17,7 +17,7 @@ def add_log(committer_dict: dict[str, int], input: list[str]) -> None:
|
|||||||
committer_name = dataset.split("\t")[1]
|
committer_name = dataset.split("\t")[1]
|
||||||
commit_count = int(dataset.split("\t")[0])
|
commit_count = int(dataset.split("\t")[0])
|
||||||
|
|
||||||
if committer_name.endswith("[bot]"):
|
if committer_name.endswith("[bot]") or committer_name == "Hosted Weblate":
|
||||||
# Exclude dependabot[bot] and other GitHub bots.
|
# Exclude dependabot[bot] and other GitHub bots.
|
||||||
global bot_commits
|
global bot_commits
|
||||||
bot_commits += commit_count
|
bot_commits += commit_count
|
||||||
|
Reference in New Issue
Block a user