Skip to content
Permalink
Browse files
Merge pull request #22 from knaufk/hotfix-blocker-issues
[hotfix] dont warn on tickets that already have the warning label
  • Loading branch information
knaufk committed Jul 9, 2021
2 parents 614cd74 + bc37608 commit ee516a31cbd81a74808bc39bfe360e9e9e7fd083
Show file tree
Hide file tree
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 ee516a3

Please sign in to comment.