From 89fbc3a75b07bb86ca47809d53f57892cc8c5443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Fri, 7 Oct 2016 19:32:44 +0200 Subject: [PATCH 1/2] Fix #3653 --- user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.go b/user.go index 0bf2254..564a3fb 100644 --- a/user.go +++ b/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"` From e06f18a358ca9a37c542c4f593a149b3bcf67872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Fri, 7 Oct 2016 19:33:21 +0200 Subject: [PATCH 2/2] GitHub Compliance --- issue.go | 3 ++- issue_label.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/issue.go b/issue.go index 7bb50df..16859ca 100644 --- a/issue.go +++ b/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/issue_label.go b/issue_label.go index ce6a64d..b8ff300 100644 --- a/issue_label.go +++ b/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) {