Skip to content

Trigger /api/webhook with curl #9032

Answered by crenshaw-dev
lukonjun asked this question in Q&A
Discussion options

You must be logged in to vote

ApplicationSet ignores events that don't look like git events.

case r.Header.Get("X-GitHub-Event") != "":
payload, err = h.github.Parse(r, github.PushEvent, github.PullRequestEvent)
case r.Header.Get("X-Gitlab-Event") != "":
payload, err = h.gitlab.Parse(r, gitlab.PushEvents, gitlab.TagEvents)
default:
log.Debug("Ignoring unknown webhook event")
http.Error(w, "Unknown webhook event", http.StatusBadRequest)
return

Try setting one of those headers to push.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@crenshaw-dev
Comment options

@rishabh625
Comment options

@sspreitzer
Comment options

@messiahUA
Comment options

@dongdongheo
Comment options

Answer selected by lukonjun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants