Merge pull request #9 from go-gitea/fix/github-compliance

GitHub-API compliance
This commit is contained in:
Kim "BKC" Carlbäcker 2016-11-10 12:33:06 +01:00 committed by GitHub
commit cc453bfe27
3 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,8 @@ type Issue struct {
// ListIssueOption list issue options // ListIssueOption list issue options
type ListIssueOption struct { type ListIssueOption struct {
Page int Page int
State string
} }
// ListRepoIssues list one repos' issues // ListRepoIssues list one repos' issues

View file

@ -15,6 +15,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"`
} }
// ListRepoLabels list lables of one reppsitory // ListRepoLabels list lables of one reppsitory

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"`