Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cr
Browse files Browse the repository at this point in the history
Signed-off-by: francois  samin <francois.samin@corp.ovh.com>
fsamin committed Jan 9, 2020
1 parent f7be521 commit 8a16d79
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions engine/api/workflow/workflow_parser.go
Original file line number Diff line number Diff line change
@@ -155,6 +155,7 @@ func ParseAndImport(ctx context.Context, db gorp.SqlExecutor, store cache.Store,
for _, h := range w.WorkflowData.Node.Hooks {
if h.Ref() == newRepoWebHook.Ref() {
hasARepoWebHook = true
break
}
}
if !hasARepoWebHook {
3 changes: 1 addition & 2 deletions engine/api/workflow_run.go
Original file line number Diff line number Diff line change
@@ -862,8 +862,7 @@ func (api *API) postWorkflowRunHandler() service.Handler {
if opts.Hook != nil {
hook, errH := workflow.LoadHookByUUID(api.mustDB(), opts.Hook.WorkflowNodeHookUUID)
if errH != nil {
log.Error(ctx, "postWorkflowRunHandler> unknow hook %s: %v", opts.Hook.WorkflowNodeHookUUID, errH)
return sdk.WrapError(errH, "cannot load hookn for uuid %s", opts.Hook.WorkflowNodeHookUUID)
return sdk.WrapError(errH, "cannot load hook for uuid %s", opts.Hook.WorkflowNodeHookUUID)
}
conditions := hook.Conditions
params := sdk.ParametersFromMap(opts.Hook.Payload)

0 comments on commit 8a16d79

Please sign in to comment.