Merge pull request #544 from ciarand/fix-lowercase-json

Add JSON struct tags to Work for lowercase props
This commit is contained in:
Brad Rydzewski 2014-10-12 20:10:00 -07:00
commit 1b37515465

View file

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