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

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

View file

@ -15,6 +15,7 @@ type Label struct {
ID int64 `json:"id"`
Name string `json:"name"`
Color string `json:"color"`
URL string `json:"url"`
}
// ListRepoLabels list lables of one reppsitory

View file

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