File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ type Issue struct {
41
41
}
42
42
43
43
type ListIssueOption struct {
44
- Page int
44
+ Page int
45
+ State string
45
46
}
46
47
47
48
func (c * Client ) ListIssues (opt ListIssueOption ) ([]* Issue , error ) {
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type Label struct {
14
14
ID int64 `json:"id"`
15
15
Name string `json:"name"`
16
16
Color string `json:"color"`
17
+ URL string `json:"url"`
17
18
}
18
19
19
20
func (c * Client ) ListRepoLabels (owner , repo string ) ([]* Label , error ) {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
// User represents a API user.
12
12
type User struct {
13
13
ID int64 `json:"id"`
14
- UserName string `json:"username "`
14
+ UserName string `json:"login "`
15
15
FullName string `json:"full_name"`
16
16
Email string `json:"email"`
17
17
AvatarUrl string `json:"avatar_url"`
You can’t perform that action at this time.
0 commit comments