diff --git a/gitea/issue.go b/gitea/issue.go index 4392e00..207e442 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -41,7 +41,8 @@ type Issue struct { } type ListIssueOption struct { - Page int + Page int + State string } func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, error) { diff --git a/gitea/issue_label.go b/gitea/issue_label.go index 681e504..ae73614 100644 --- a/gitea/issue_label.go +++ b/gitea/issue_label.go @@ -14,6 +14,7 @@ type Label struct { ID int64 `json:"id"` Name string `json:"name"` Color string `json:"color"` + URL string `json:"url"` } func (c *Client) ListRepoLabels(owner, repo string) ([]*Label, error) { diff --git a/gitea/user.go b/gitea/user.go index 8b78bea..934350e 100644 --- a/gitea/user.go +++ b/gitea/user.go @@ -11,7 +11,7 @@ import ( // User represents a API user. type User struct { ID int64 `json:"id"` - UserName string `json:"username"` + UserName string `json:"login"` FullName string `json:"full_name"` Email string `json:"email"` AvatarUrl string `json:"avatar_url"`