diff --git a/handler/api/repos/builds/create.go b/handler/api/repos/builds/create.go index 049b1bf4e..1ff0a8be9 100644 --- a/handler/api/repos/builds/create.go +++ b/handler/api/repos/builds/create.go @@ -41,6 +41,7 @@ func HandleCreate( sha = r.FormValue("commit") branch = r.FormValue("branch") message = r.FormValue("message") + action = r.FormValue("action") user, _ = request.UserFrom(ctx) ) @@ -97,6 +98,9 @@ func HandleCreate( if len(message) > 0 { hook.Message = message } + if len(action) > 0 { + hook.Action = action + } for key, value := range r.URL.Query() { if key == "access_token" ||