Skip to content

Commit

Permalink
Remove renovate-bot from contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
Satishpokala124 authored and bartaz committed Jul 22, 2024
1 parent b71a810 commit 48b4f8c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion webapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,21 @@ def _filter_team_members_from_contributors(contributors):
]


def _is_not_renovate_bot(contributor):
# Using "login" to check for renovate-bot as
# GitHub treats it as a user, i.e., type: "User"

return contributor["login"] != "renovate-bot"


def _filter_bots_from_contributors(contributors):
return [
contributor
for contributor in contributors
if contributor["type"].lower() != "bot"
if (
contributor["type"].lower() != "bot"
and _is_not_renovate_bot(contributor)
)
]


Expand Down

0 comments on commit 48b4f8c

Please sign in to comment.