Skip to content

Commit

Permalink
Merge pull request harness#3341 from filippopisano/feature/add-action…
Browse files Browse the repository at this point in the history
…-param-to-custom-build

Support arbitrary action value from parameter in query string
  • Loading branch information
TP Honey committed Aug 9, 2023
2 parents 378d8a5 + bbc6cee commit 5075f84
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 5075f84

Please sign in to comment.