Merge pull request #3341 from filippopisano/feature/add-action-param-to-custom-build

Support arbitrary action value from parameter in query string
pull/3349/head
TP Honey 2023-08-09 11:34:58 +01:00 committed by GitHub
commit 5075f84e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ func HandleCreate(
sha = r.FormValue("commit") sha = r.FormValue("commit")
branch = r.FormValue("branch") branch = r.FormValue("branch")
message = r.FormValue("message") message = r.FormValue("message")
action = r.FormValue("action")
user, _ = request.UserFrom(ctx) user, _ = request.UserFrom(ctx)
) )
@ -97,6 +98,9 @@ func HandleCreate(
if len(message) > 0 { if len(message) > 0 {
hook.Message = message hook.Message = message
} }
if len(action) > 0 {
hook.Action = action
}
for key, value := range r.URL.Query() { for key, value := range r.URL.Query() {
if key == "access_token" || if key == "access_token" ||