Skip to content

Commit

Permalink
ci: SRE-700: Prefer Jira over Aha
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabelonogov committed Oct 24, 2023
1 parent 038197f commit de252f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/helpers/gh_changelog_generator/gh_changelog_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,23 +192,23 @@ def get_task(task_number: str, pr: int = None) -> AhaFeature or None:
if task_number in TASK_CACHE.keys():
return TASK_CACHE.get(task_number)
try:
task = AhaFeature(task_number, pr)
task = JiraIssue(task_number, pr)
TASK_CACHE[task_number] = task
return task
except Exception as e:
print(f'Could not find Feature {task_number} in Aha!: {e}')
print(f'Could not find Issue {task_number} in Jira: {e}')
try:
task = AhaRequirement(task_number, pr)
task = AhaFeature(task_number, pr)
TASK_CACHE[task_number] = task
return task
except Exception as e:
print(f'Could not find Requirement {task_number} in Aha!: {e}')
print(f'Could not find Feature {task_number} in Aha!: {e}')
try:
task = JiraIssue(task_number, pr)
task = AhaRequirement(task_number, pr)
TASK_CACHE[task_number] = task
return task
except Exception as e:
print(f'Could not find Issue {task_number} in Jira: {e}')
print(f'Could not find Requirement {task_number} in Aha!: {e}')
return None


Expand Down

0 comments on commit de252f5

Please sign in to comment.