Skip to content

Commit

Permalink
Do not do auto transitions when no recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaarreell committed Nov 28, 2024
1 parent 7a3ae9b commit a690715
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions newa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,14 +733,6 @@ def _jira_fake_id_generator() -> Generator[str, int, None]:
recipe=Recipe(url=recipe_url))
ctx.save_jira_job('jira-', jira_job)

# when there is no job_recipe we process transition if enabled
elif action.auto_transition and transition_processed:
issue_transition(jira_handler.connection,
transition_processed,
new_issue.id)
ctx.logger.info(
f'Issue {new_issue.id} state changed to {transition_processed}')

# Processing old issues - we only expect old issues that are to be closed (if any).
if old_issues:
if action.on_respin != OnRespinAction.CLOSE:
Expand Down

0 comments on commit a690715

Please sign in to comment.