Skip to content

Commit

Permalink
Allow to re-trigger completed builds with 0 tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov committed Feb 7, 2022
1 parent 165c9a6 commit 829ea08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/builds/BuildDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ function BuildDetails(props: Props) {
);

const canBeReTriggered =
(build.status === 'FAILED' || build.status === 'ERRORED') &&
(build.status === 'FAILED' || build.status === 'ERRORED' || build.status === 'COMPLETED') &&
hasWritePermissions(build.repository.viewerPermission) &&
build.latestGroupTasks &&
build.latestGroupTasks.length === 0;
Expand Down

0 comments on commit 829ea08

Please sign in to comment.