Skip to content

Commit

Permalink
[FLINK-22033] add docstring for rule classes
Browse files Browse the repository at this point in the history
  • Loading branch information
knaufk committed Apr 16, 2021
1 parent a38d571 commit 77943a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions flink_jira_bot.py
Expand Up @@ -107,6 +107,12 @@ def run(self):


class Rule3(FlinkJiraRule):
"""
An unresolved Minor ticket without an update for {stale_minor.stale_days} is closed after a warning period of
{stale_minor.warning_days} with a comment that encourages users to watch, comment and simply reopen with a higher
priority if the problem insists.
"""

def __init__(self, jira_client, config, is_dry_run):
super().__init__(jira_client, config, is_dry_run)
self.stale_days = config["stale_minor"]["stale_days"].get()
Expand Down Expand Up @@ -181,6 +187,12 @@ def mark_stale_tickets_stale(self):


class Rule2(FlinkJiraRule):
"""
Assigned tickets without an update for {stale_assigned.stale_days} are unassigned after a warning period of
{stale_assigned.warning_days}. Before this happens the assignee is notified that this is about to happen and
asked for an update on the status of her contribution.
"""

def __init__(self, jira_client, config, is_dry_run):
super().__init__(jira_client, config, is_dry_run)
self.stale_days = config["stale_assigned"]["stale_days"].get()
Expand Down

0 comments on commit 77943a1

Please sign in to comment.