From 66fbec93548b96ffc705eb7ee0dd1c74bfb54dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Wed, 9 Nov 2016 17:08:10 +0100 Subject: [PATCH] GitHub-API compliance --- gitea/issue.go | 3 ++- gitea/issue_label.go | 1 + gitea/user.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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"`