From 3260b7237fb763d3e31d8d08634c69055f7c37a6 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 24 Nov 2015 15:36:49 -0800 Subject: [PATCH] add system to webhook payload so that we know the drone url --- main.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 72deb45..621d4a8 100644 --- a/main.go +++ b/main.go @@ -44,9 +44,10 @@ func main() { // data structure data := struct { - Repo drone.Repo `json:"repo"` - Build drone.Build `json:"build"` - }{repo, build} + System drone.System `json:"system"` + Repo drone.Repo `json:"repo"` + Build drone.Build `json:"build"` + }{sys, repo, build} // creates the payload. by default the payload // is the build details in json format, but a custom