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