From ff127f034918eeb5710945cc4d5e6b19c205e3c8 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 13 Jan 2015 21:57:30 -0800 Subject: [PATCH] webhook payload should include the host URL --- plugin/notify/webhook/webhook.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/notify/webhook/webhook.go b/plugin/notify/webhook/webhook.go index b35b69f5d..b9aff0ab5 100644 --- a/plugin/notify/webhook/webhook.go +++ b/plugin/notify/webhook/webhook.go @@ -29,10 +29,11 @@ func (w *Webhook) Send(context *model.Request) error { func (w *Webhook) send(context *model.Request) error { // data will get posted in this format data := struct { + From string `json:"from_url"` Owner *model.User `json:"owner"` Repo *model.Repo `json:"repository"` Commit *model.Commit `json:"commit"` - }{context.User, context.Repo, context.Commit} + }{context.Host, context.User, context.Repo, context.Commit} // data json encoded payload, err := json.Marshal(data)