Skip to content

Commit

Permalink
GitHub-API compliance (#52)
Browse files Browse the repository at this point in the history
* Fix #3653

* GitHub Compliance
  • Loading branch information
bkcsoft authored and unknwon committed Dec 21, 2016
1 parent d8e9a39 commit 538bef5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion issue.go
Expand Up @@ -41,7 +41,8 @@ type Issue struct {
}

type ListIssueOption struct {
Page int
Page int
State string
}

func (c *Client) ListIssues(opt ListIssueOption) ([]*Issue, error) {
Expand Down
1 change: 1 addition & 0 deletions issue_label.go
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
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

0 comments on commit 538bef5

Please sign in to comment.