Fix User and PullRequest types

This commit is contained in:
Sanket Patel 2018-06-04 16:26:03 -05:00
parent 41485eb53d
commit 7375146849

View File

@ -79,7 +79,7 @@ type UserWithNameEmail struct {
type User struct { type User struct {
Name string `json:"name"` Name string `json:"name"`
Email string `json:"emailAddress"` Email string `json:"emailAddress"`
ID string `json:"id"` ID int `json:"id"`
DisplayName string `json:"displayName"` DisplayName string `json:"displayName"`
Active bool `json:"active"` Active bool `json:"active"`
Slug string `json:"slug"` Slug string `json:"slug"`
@ -110,6 +110,7 @@ type PullRequest struct {
ID int `json:"id"` ID int `json:"id"`
Version int `json:"version"` Version int `json:"version"`
Title string `json:"title"` Title string `json:"title"`
Description string `json:"description"`
State string `json:"state"` State string `json:"state"`
Open bool `json:"open"` Open bool `json:"open"`
Closed bool `json:"closed"` Closed bool `json:"closed"`