From 829ea08ff03695f74ebfe089478be045d5b26ced Mon Sep 17 00:00:00 2001 From: fedor Date: Mon, 7 Feb 2022 15:09:09 -0500 Subject: [PATCH] Allow to re-trigger completed builds with 0 tasks Fixes https://github.com/cirruslabs/cirrus-ci-docs/issues/972#issuecomment-1031869485 --- src/components/builds/BuildDetails.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/builds/BuildDetails.tsx b/src/components/builds/BuildDetails.tsx index 2d772a53f..328c7aa1e 100644 --- a/src/components/builds/BuildDetails.tsx +++ b/src/components/builds/BuildDetails.tsx @@ -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;