Added support to action parameter in query string for custom builds

pull/3341/head
Filippo Pisano 2023-07-26 17:36:25 +02:00
parent b69bd618cc
commit bbc6cee45a
1 changed files with 4 additions and 0 deletions

View File

@ -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" ||