Skip to content

Commit

Permalink
fomatted
Browse files Browse the repository at this point in the history
  • Loading branch information
maira-samtek committed Feb 28, 2024
1 parent f10247a commit 578b3bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libs/jira-lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,17 @@ export class Jira {
!opposedStatuses.includes(transition.name.toLowerCase()) &&
!processedTransitions.includes(transition.name.toLowerCase())
);
if(targetTransitions.length <=0){
if (targetTransitions.length <= 0) {
break;
}
const transitionId = targetTransitions[0].id;
processedTransitions.push(targetTransitions[0].name);
await this.jira.transitionIssue(issueKey, {
transition: { id: transitionId },
});
console.log(`Transitioned issue ${issueKey} to the next step: ${targetTransitions[0].name}`);
console.log(
`Transitioned issue ${issueKey} to the next step: ${targetTransitions[0].name}`
);
} else {
break;
}
Expand Down

0 comments on commit 578b3bf

Please sign in to comment.