Rename Issue.User -> Issue.Poster
This commit is contained in:
parent
e363d3ff8f
commit
51c4df8c35
3 changed files with 7 additions and 5 deletions
2
gogs.go
2
gogs.go
|
@ -14,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
func Version() string {
|
||||
return "0.12.0"
|
||||
return "0.12.1"
|
||||
}
|
||||
|
||||
// Client represents a Gogs API client.
|
||||
|
|
4
issue.go
4
issue.go
|
@ -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"`
|
||||
|
|
6
pull.go
6
pull.go
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue