Skip to content
Permalink
Browse files
[FLINK-22429] exclude Sub-Tasks form stale-major+ and stale-minor rule
  • Loading branch information
knaufk committed Apr 23, 2021
1 parent dfb2fd8 commit 0b403ff3b212008819f53ecfa995e34b58b9b95f
Showing 2 changed files with 4 additions and 4 deletions.
@@ -41,8 +41,8 @@ def run(self):
f"AND updated < startOfDay(-{self.warning_days}d)"
)
self.mark_stale_tickets_stale(
f"project=FLINK AND priority = {self.priority} AND resolution = Unresolved "
f"AND assignee is empty AND updated < startOfDay(-{self.stale_days}d)"
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)'
)

def handle_stale_ticket(self, key):
@@ -38,8 +38,8 @@ def run(self):
f"AND updated < startOfDay(-{self.warning_days}d)"
)
self.mark_stale_tickets_stale(
f"project = FLINK AND Priority = Minor AND resolution = Unresolved "
f"AND updated < startOfDay(-{self.stale_days}d)"
f'project = FLINK AND type != "Sub-Task" AND Priority = Minor AND resolution = Unresolved '
f'AND updated < startOfDay(-{self.stale_days}d)'
)

def handle_stale_ticket(self, key):

0 comments on commit 0b403ff

Please sign in to comment.