8000 feat(api): add type of node on node run event (#4032) · ovh/cds@398503b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 398503b

Browse files
sguiheuxrichardlt
authored andcommitted
feat(api): add type of node on node run event (#4032)
1 parent 1dfc43e commit 398503b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

engine/api/event/publish_workflow_run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ func PublishWorkflowNodeRun(db gorp.SqlExecutor, nr sdk.WorkflowNodeRun, w sdk.W
102102
if wnode.Context != nil && wnode.Context.EnvironmentID != 0 {
103103
env = w.Environments[wnode.Context.EnvironmentID]
104104
}
105+
e.NodeType = wnode.Type
105106
} else {
106107
nodeName = n.Name
107108
pipName = w.Pipelines[n.PipelineID].Name

sdk/event.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ type EventRunWorkflowNode struct {
7979
StagesSummary []StageSummary `json:"stages_summary"`
8080
HookUUID string `json:"hook_uuid"`
8181
HookLog string `json:"log,omitempty"`
82+
NodeType string `json:"node_type,omitempty"`
8283
}
8384

8485
// EventRunWorkflowOutgoingHook contains event data for a workflow outgoing hook run

0 commit comments

Comments
 (0)
0