Merge pull request #9 from go-gitea/fix/github-compliance
GitHub-API compliance
This commit is contained in:
commit
cc453bfe27
3 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"`
|
||||||
|
|
Loading…
Reference in a new issue