From 1dd5118eebe0e993d55ae5433cb2dcfd2764bf4f Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 20 Jul 2018 00:25:30 +0200 Subject: graphql: Actually get the bugs from the repo --- bug/comment.go | 4 ++-- bug/person.go | 4 ++-- bug/snapshot.go | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'bug') diff --git a/bug/comment.go b/bug/comment.go index c0c07076..9cc38738 100644 --- a/bug/comment.go +++ b/bug/comment.go @@ -6,8 +6,8 @@ import ( ) type Comment struct { - Author Person - Message string + Author Person `json:"author"` + Message string `json:"message"` // Creation time of the comment. // Should be used only for human display, never for ordering as we can't rely on it in a distributed system. diff --git a/bug/person.go b/bug/person.go index 5c9dcc4c..6a70fa9e 100644 --- a/bug/person.go +++ b/bug/person.go @@ -6,8 +6,8 @@ import ( ) type Person struct { - Name string - Email string + Name string `json:"name"` + Email string `json:"email"` } // GetUser will query the repository for user detail and build the corresponding Person diff --git a/bug/snapshot.go b/bug/snapshot.go index 14ffd629..5058b3f7 100644 --- a/bug/snapshot.go +++ b/bug/snapshot.go @@ -10,10 +10,10 @@ import ( type Snapshot struct { id string - Status Status - Title string - Comments []Comment - Labels []Label + Status Status `json:"status"` + Title string `json:"title"` + Comments []Comment `json:"comments"` + Labels []Label `json:"labels"` Operations []Operation } -- cgit