-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathstalled.py
More file actions
41 lines (32 loc) · 1.15 KB
/
stalled.py
File metadata and controls
41 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from bugbot.bzcleaner import BzCleaner
class Stalled(BzCleaner):
no_bugmail = True
def description(self):
return "Closed bugs with stalled keyword"
def get_bz_params(self, date):
start_date, end_date = self.get_dates(date)
params = {
"bug_status": ["RESOLVED", "VERIFIED", "CLOSED"],
"f1": "keywords",
"o1": "casesubstring",
"v1": "stalled",
"f2": "resolution",
"o2": "changedafter",
"v2": start_date,
"f3": "resolution",
"o3": "changedbefore",
"v3": end_date,
}
return params
def get_autofix_change(self):
return {
"keywords": {"remove": ["stalled"]},
"comment": {
"body": f"Since the bug is closed, the stalled keyword is now meaningless.\n{self.get_documentation()}"
},
}
if __name__ == "__main__":
Stalled().run()