Skip to content
Permalink
Browse files
[hotfix] dont warn on tickets that already have the warning label
  • Loading branch information
knaufk committed Jul 9, 2021
1 parent 614cd74 commit bc376084c6c76a4d0fd578e526d2930977461e54
Showing 3 changed files with 5 additions and 3 deletions.
@@ -37,7 +37,7 @@ def run(self):
)
self.mark_stale_tickets_stale(
f"project = FLINK AND resolution = Unresolved AND assignee is not EMPTY "
f"AND updated < startOfDay(-{self.stale_days}d)"
f'AND updated < startOfDay(-{self.stale_days}d) AND NOT labels in ("{self.warning_label}")'
)

def handle_stale_ticket(self, key, warning_label, done_label, comment):
@@ -43,7 +43,8 @@ def run(self):
)
self.mark_stale_tickets_stale(
f'project=FLINK AND type != "Sub-Task" AND priority = {self.priority} AND resolution = Unresolved '
f"AND assignee is empty AND updated < startOfDay(-{self.stale_days}d) AND fixVersion = null"
f'AND assignee is empty AND updated < startOfDay(-{self.stale_days}d) AND fixVersion = null AND NOT labels '
f'in ("{self.warning_label}")'
)

def handle_stale_ticket(self, key, warning_label, done_label, comment):
@@ -39,7 +39,8 @@ def run(self):
)
self.mark_stale_tickets_stale(
f'project = FLINK AND type != "Sub-Task" AND Priority = Minor AND resolution = Unresolved '
f"AND updated < startOfDay(-{self.stale_days}d) AND fixVersion = null"
f'AND updated < startOfDay(-{self.stale_days}d) AND fixVersion = null AND NOT labels in '
f'("{self.warning_label}")'
)

def handle_stale_ticket(self, key, warning_label, done_label, comment):

0 comments on commit bc37608

Please sign in to comment.