From 850fbd170adb29ce1505cc28c238e43495aa86c1 Mon Sep 17 00:00:00 2001 From: Ciaran Downey Date: Sun, 12 Oct 2014 20:02:54 -0700 Subject: [PATCH] Add JSON struct tags to Work for lowercase props --- server/worker/work.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/worker/work.go b/server/worker/work.go index d3e355958..2b43abf9f 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 {