add system to webhook payload so that we know the drone url

This commit is contained in:
Brad Rydzewski 2015-11-24 15:36:49 -08:00
parent e17c338fe4
commit 3260b7237f
1 changed files with 4 additions and 3 deletions

View File

@ -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