Merge pull request #23365 from Evernorth/kp/fix-github-actions-workflow-status-handling

Fixed WorkflowRunStatus component to handle skipped and cancelled status. Fixes #23257
This commit is contained in:
Fredrik Adelöw
2024-03-02 09:18:47 +01:00
committed by GitHub
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':