Skip to content

Commit

Permalink
Removed deletion of bugs, now limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmah committed Jan 2, 2025
1 parent 3791ffb commit 7a1a05a
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions bugbot/rules/workflow/no_severity_ni.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,17 @@ def filter_bugs(self, bugs):
fetch_employee_info=True,
)

for bug_id, bug in list(bugs.items()):
user_info = users_info[bug["triage_owner"]]
if "requests" in user_info:
if user_info["requests"]["needinfo"]["blocked"]:
del bugs[bug_id]
return bugs
# for bug_id, bug in list(bugs.items()):
# user_info = users_info[bug["triage_owner"]]
# if "requests" in user_info:
# if user_info["requests"]["needinfo"]["blocked"]:
# del bugs[bug_id]
filtered_bugs = {
bug_id: bug
for bug_id, bug in bugs.items()
if not users_info[bug["triage_owner"]]["requests"]["needinfo"]["blocked"]
}
return filtered_bugs

def get_bugs(self, *args, **kwargs):
bugs = super().get_bugs(*args, **kwargs)
Expand Down

0 comments on commit 7a1a05a

Please sign in to comment.