@@ -39,7 +39,7 @@ func PublishWorkflowAdd(ctx context.Context, projKey string, w sdk.Workflow, u s
39
39
e := sdk.EventWorkflowAdd {
40
40
Workflow : w ,
41
41
}
42
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
42
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
43
43
}
44
44
45
45
// PublishWorkflowUpdate publishes an event for the update of the given Workflow
@@ -48,15 +48,15 @@ func PublishWorkflowUpdate(ctx context.Context, projKey string, w sdk.Workflow,
48
48
NewWorkflow : w ,
49
49
OldWorkflow : oldw ,
50
50
}
51
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
51
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
52
52
}
53
53
54
54
// PublishWorkflowDelete publishes an event for the deletion of the given Workflow
55
55
func PublishWorkflowDelete (ctx context.Context , projKey string , w sdk.Workflow , u sdk.Identifiable ) {
56
56
e := sdk.EventWorkflowDelete {
57
57
Workflow : w ,
58
58
}
59
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
59
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
60
60
}
61
61
62
62
// PublishWorkflowPermissionAdd publishes an event when adding a permission on a workflow
@@ -65,7 +65,7 @@ func PublishWorkflowPermissionAdd(ctx context.Context, projKey string, w sdk.Wor
65
65
WorkflowID : w .ID ,
66
66
Permission : gp ,
67
67
}
68
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
68
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
69
69
}
70
70
71
71
// PublishWorkflowPermissionUpdate publishes an event when updating a permission on a workflow
@@ -75,7 +75,7 @@ func PublishWorkflowPermissionUpdate(ctx context.Context, projKey string, w sdk.
75
75
NewPermission : gp ,
76
76
OldPermission : gpOld ,
77
77
}
78
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
78
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
79
79
}
80
80
81
81
// PublishWorkflowPermissionDelete publishes an event when deleting a permission on a workflow
@@ -84,7 +84,7 @@ func PublishWorkflowPermissionDelete(ctx context.Context, projKey string, w sdk.
84
84
WorkflowID : w .ID ,
85
85
Permission : gp ,
86
86
}
87
- publishWorkflowEvent (ctx , e , projKey , w .Name , w .EventIntegrations , u )
87
+ publishWorkflowEvent (ctx , e , projKey , w .Name , w .GetEventIntegration () , u )
88
88
}
89
89
90
90
func PublishWorkflowRetentionDryRun (ctx context.Context , projKey string , workflowName string , status string , error string , runsToKeep []sdk.WorkflowRunToKeep , nbRunsAnalyzed int64 , u sdk.Identifiable ) {
0 commit comments