Merge pull request #23459 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-09 15:01:02 +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 status description of skipped and cancelled workflow runs appeared as success
@@ -83,7 +83,8 @@ export function getStatusDescription({
return 'In progress';
case 'completed':
switch (conclusion?.toLocaleLowerCase('en-US')) {
case 'skipped' || 'canceled':
case 'skipped':
case 'cancelled':
return 'Aborted';
case 'timed_out':
return 'Timed out';