Bug 1404018 - Do not reset priority of owner-triaged bugs when already P2/P3; r=jmaher
--- a/woo_commenter.py
+++ b/woo_commenter.py
@@ -258,19 +258,18 @@ def main():
bug_info = get_triage_info_for_bug(bmo_session, bug_id)
whiteboard = bug_info['whiteboard']
if (((bug_info['product'], bug_info['component']) in components) and
('intermittent-failure' in bug_info['keywords']) and
('[stockwell fixed' not in whiteboard) and
('[stockwell disabled' not in whiteboard) and
('[stockwell infra' not in whiteboard)):
# do not update priority on bugs already awaiting triage or
- # already a high priority (P1 should be re-triaged weekly)
- if ((bug_info['priority'] != '--') and
- (bug_info['priority'] != 'P1')):
+ # already P1/P2/P3 (hopefully recently triaged)
+ if bug_info['priority'] not in ['--', 'P1', 'P2', 'P3']:
params['priority'] = '--'
# remove any [stockwell xxx] from whiteboard, then add
# [stockwell needswork:owner], unless it is already there
whiteboard = bug_info['whiteboard']
if not WHITEBOARD_NEEDSWORK_OWNER in whiteboard:
whiteboard = stockwell_whiteboard(whiteboard, WHITEBOARD_NEEDSWORK_OWNER)
# When skip-threshold exceeded, also update whiteboard
if priority == 3: