Skip to content
Permalink
Browse files
[hotfix] Auto Close issues with resolution "Auto Closed" instead of "…
…Fixed"
  • Loading branch information
knaufk committed Apr 21, 2021
1 parent 8bf7d6a commit 5f209aeda78972c547e477751f235efffecbe545
Showing 1 changed file with 4 additions and 2 deletions.
@@ -91,7 +91,9 @@ def add_comment(self, key, comment):

def close_issue(self, key):
if not self.is_dry_run:
self.jira_client.issue_transition(key, "Closed")
self.jira_client.set_issue_status(
key, "Closed", fields={"resolution": {"name": "Auto Closed"}}
)
else:
logging.info(f"DRY_RUN (({key})): Closing.")

@@ -112,7 +114,7 @@ class Rule3(FlinkJiraRule):
{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()

0 comments on commit 5f209ae

Please sign in to comment.