GitHub-API compliance

This commit is contained in:
Kim "BKC" Carlbäcker 2016-11-09 17:08:10 +01:00
parent 0a0a04ccf7
commit 66fbec9354
3 changed files with 4 additions and 2 deletions

View file

@ -41,7 +41,8 @@ type Issue struct {
} }
type ListIssueOption struct { type ListIssueOption struct {
Page int Page int
State string
} }
func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, error) { func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, error) {

View file

@ -14,6 +14,7 @@ type Label struct {
ID int64 `json:"id"` ID int64 `json:"id"`
Name string `json:"name"` Name string `json:"name"`
Color string `json:"color"` Color string `json:"color"`
URL string `json:"url"`
} }
func (c *Client) ListRepoLabels(owner, repo string) ([]*Label, error) { func (c *Client) ListRepoLabels(owner, repo string) ([]*Label, error) {

View file

@ -11,7 +11,7 @@ import (
// User represents a API user. // User represents a API user.
type User struct { type User struct {
ID int64 `json:"id"` ID int64 `json:"id"`
UserName string `json:"username"` UserName string `json:"login"`
FullName string `json:"full_name"` FullName string `json:"full_name"`
Email string `json:"email"` Email string `json:"email"`
AvatarUrl string `json:"avatar_url"` AvatarUrl string `json:"avatar_url"`