Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions issue_label.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down