zentol commented on a change in pull request #22:
URL: https://github.com/apache/flink-jira-bot/pull/22#discussion_r666855359



##########
File path: stale_major_or_above_rule.py
##########
@@ -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}")'

Review comment:
       ```suggestion
               f'in ("{self.warning_label}")'
   ```

##########
File path: stale_assigned_rule.py
##########
@@ -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}")'

Review comment:
       ```suggestion
               f'AND updated < startOfDay(-{self.stale_days}d) AND NOT labels 
in ("{self.warning_label}")'
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to