mirror of
https://github.com/harness/drone.git
synced 2025-05-06 21:21:00 +08:00
Add JSON struct tags to Work for lowercase props
This commit is contained in:
parent
3d839498a1
commit
850fbd170a
@ -3,10 +3,10 @@ package worker
|
|||||||
import "github.com/drone/drone/shared/model"
|
import "github.com/drone/drone/shared/model"
|
||||||
|
|
||||||
type Work struct {
|
type Work struct {
|
||||||
Host string
|
Host string `json:"host"`
|
||||||
User *model.User
|
User *model.User `json:"user"`
|
||||||
Repo *model.Repo
|
Repo *model.Repo `json:"repo"`
|
||||||
Commit *model.Commit
|
Commit *model.Commit `json:"commit"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Assignment struct {
|
type Assignment struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user