You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by kn...@apache.org on 2021/04/23 13:53:02 UTC
[flink-jira-bot] branch master updated: [FLINK-22429] exclude
Sub-Tasks form stale-major+ and stale-minor rule
This is an automated email from the ASF dual-hosted git repository.
knaufk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-jira-bot.git
The following commit(s) were added to refs/heads/master by this push:
new 0b403ff [FLINK-22429] exclude Sub-Tasks form stale-major+ and stale-minor rule
new 673419a Merge pull request #10 from knaufk/FLINK-22429
0b403ff is described below
commit 0b403ff3b212008819f53ecfa995e34b58b9b95f
Author: Konstantin Knauf <kn...@gmail.com>
AuthorDate: Fri Apr 23 14:52:41 2021 +0200
[FLINK-22429] exclude Sub-Tasks form stale-major+ and stale-minor rule
---
stale_major_or_above_rule.py | 4 ++--
stale_minor_rule.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/stale_major_or_above_rule.py b/stale_major_or_above_rule.py
index c5509a0..dd256b2 100644
--- a/stale_major_or_above_rule.py
+++ b/stale_major_or_above_rule.py
@@ -41,8 +41,8 @@ class StaleMajorOrAboveRule(FlinkJiraRule):
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):
diff --git a/stale_minor_rule.py b/stale_minor_rule.py
index 0bef5d9..ae54dac 100644
--- a/stale_minor_rule.py
+++ b/stale_minor_rule.py
@@ -38,8 +38,8 @@ class StaleMinorRule(FlinkJiraRule):
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):