Fixed bug in WorkflowRunStatus component where skipped & cancelled status were shown as completed

Signed-off-by: Karthikeyan Perumal <7823084+karthikeyanjp@users.noreply.github.com>
This commit is contained in:
Karthikeyan Perumal
2024-03-01 20:28:37 -06:00
parent f6c0fc32dc
commit 8ab3218c1a
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-github-actions': patch
---
Fixed bug in WorkflowRunStatus component where skipped and cancelled workflow runs appeared as success
@@ -52,7 +52,8 @@ export function WorkflowIcon({
return <StatusRunning />;
case 'completed':
switch (conclusion?.toLocaleLowerCase('en-US')) {
case 'skipped' || 'canceled':
case 'skipped':
case 'cancelled':
return <StatusAborted />;
case 'timed_out':