add system to webhook payload so that we know the drone url
This commit is contained in:
parent
e17c338fe4
commit
3260b7237f
7
main.go
7
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user