Skip to content

Commit

Permalink
Added support to action parameter in query string for custom builds
Browse files Browse the repository at this point in the history
  • Loading branch information
filippopisano committed Jul 26, 2023
1 parent b69bd61 commit bbc6cee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handler/api/repos/builds/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

Expand Down Expand Up @@ -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" ||
Expand Down

0 comments on commit bbc6cee

Please sign in to comment.