Skip to content

Commit

Permalink
feat(api): add type of node on node run event (#4032)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored and richardlt committed Mar 15, 2019
1 parent 1dfc43e commit 398503b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions engine/api/event/publish_workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func PublishWorkflowNodeRun(db gorp.SqlExecutor, nr sdk.WorkflowNodeRun, w sdk.W
if wnode.Context != nil && wnode.Context.EnvironmentID != 0 {
env = w.Environments[wnode.Context.EnvironmentID]
}
e.NodeType = wnode.Type
} else {
nodeName = n.Name
pipName = w.Pipelines[n.PipelineID].Name
Expand Down
1 change: 1 addition & 0 deletions sdk/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type EventRunWorkflowNode struct {
StagesSummary []StageSummary `json:"stages_summary"`
HookUUID string `json:"hook_uuid"`
HookLog string `json:"log,omitempty"`
NodeType string `json:"node_type,omitempty"`
}

// EventRunWorkflowOutgoingHook contains event data for a workflow outgoing hook run
Expand Down

0 comments on commit 398503b

Please sign in to comment.