mirror of https://github.com/harness/drone.git
Merge pull request #3341 from filippopisano/feature/add-action-param-to-custom-build
Support arbitrary action value from parameter in query stringpull/3349/head
commit
5075f84e2b
|
@ -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