Rename Issue.User -> Issue.Poster

This commit is contained in:
Unknwon 2016-08-16 10:16:51 -07:00
parent e363d3ff8f
commit 51c4df8c35
3 changed files with 7 additions and 5 deletions

View file

@ -14,7 +14,7 @@ import (
)
func Version() string {
return "0.12.0"
return "0.12.1"
}
// Client represents a Gogs API client.

View file

@ -26,13 +26,13 @@ type PullRequestMeta struct {
type Issue struct {
ID int64 `json:"id"`
Index int64 `json:"number"`
State StateType `json:"state"`
Poster *User `json:"user"`
Title string `json:"title"`
Body string `json:"body"`
User *User `json:"user"`
Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"`
State StateType `json:"state"`
Comments int `json:"comments"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`

View file

@ -13,15 +13,17 @@ type PullRequest struct {
// Copied from issue.go
ID int64 `json:"id"`
Index int64 `json:"number"`
State StateType `json:"state"`
Poster *User `json:"user"`
Title string `json:"title"`
Body string `json:"body"`
User *User `json:"user"`
Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"`
State StateType `json:"state"`
Comments int `json:"comments"`
HTMLURL string `json:"html_url"`
Mergeable *bool `json:"mergeable"`
HasMerged bool `json:"merged"`
Merged *time.Time `json:"merged_at"`