Skip to content

Commit

Permalink
Added max_actions to the inactive_revision rule
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminmah committed Aug 7, 2024
1 parent e34cd1f commit 3efbfd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bugbot/rules/inactive_revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,14 @@ def __init__(self, old_patch_months: int = 6, patch_activity_months: int = 6):
self.patch_activity_limit = (
lmdutils.get_date_ymd("today") - relativedelta(months=patch_activity_months)
).timestamp()
self.max_actions = utils.get_config(self.name(), "max_actions", 1)

def description(self):
return "Bugs with inactive patches that are awaiting action from authors or reviewers."

def get_max_actions(self):
return self.max_actions

def columns(self):
return ["id", "summary", "revisions", "needinfo_user"]

Expand Down
3 changes: 3 additions & 0 deletions configs/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -463,5 +463,8 @@
"leave_open_sec": {
"additional_receivers": "rm",
"days_lookup": 2
},
"inactive_revision": {
"max_actions": 1
}
}

0 comments on commit 3efbfd1

Please sign in to comment.