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:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user