mirror of https://github.com/harness/drone.git
Added support to action parameter in query string for custom builds
parent
b69bd618cc
commit
bbc6cee45a
|
@ -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" ||
|
||||
|
|
Loading…
Reference in New Issue