@@ -560,9 +560,9 @@ func Cancel(ctx *context_module.Context) {
560
560
if len (updatedjobs ) > 0 {
561
561
job := updatedjobs [0 ]
562
562
actions_service .NotifyWorkflowRunStatusUpdateWithReload (ctx , job )
563
+ notify_service .WorkflowRunStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job .Run )
563
564
}
564
-
565
- ctx .JSONOK ()
565
+ ctx .JSON (http .StatusOK , struct {}{})
566
566
}
567
567
568
568
func Approve (ctx * context_module.Context ) {
@@ -603,16 +603,18 @@ func Approve(ctx *context_module.Context) {
603
603
604
604
actions_service .CreateCommitStatus (ctx , jobs ... )
605
605
606
- for _ , job := range updatedjobs {
607
- _ = job .LoadAttributes (ctx )
608
- notify_service .WorkflowJobStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
609
- }
610
606
if len (updatedjobs ) > 0 {
611
607
job := updatedjobs [0 ]
612
608
actions_service .NotifyWorkflowRunStatusUpdateWithReload (ctx , job )
609
+ notify_service .WorkflowRunStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job .Run )
613
610
}
614
611
615
- ctx .JSONOK ()
612
+ for _ , job := range updatedjobs {
613
+ _ = job .LoadAttributes (ctx )
614
+ notify_service .WorkflowJobStatusUpdate (ctx , job .Run .Repo , job .Run .TriggerUser , job , nil )
615
+ }
616
+
617
+ ctx .JSON (http .StatusOK , struct {}{})
616
618
}
617
619
618
620
func Delete (ctx * context_module.Context ) {
0 commit comments