diff --git a/server/worker/work.go b/server/worker/work.go index d3e35595..2b43abf9 100644 --- a/server/worker/work.go +++ b/server/worker/work.go @@ -3,10 +3,10 @@ package worker import "github.com/drone/drone/shared/model" type Work struct { - Host string - User *model.User - Repo *model.Repo - Commit *model.Commit + Host string `json:"host"` + User *model.User `json:"user"` + Repo *model.Repo `json:"repo"` + Commit *model.Commit `json:"commit"` } type Assignment struct {