GitHub-API compliance
This commit is contained in:
parent
0a0a04ccf7
commit
66fbec9354
3 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,8 @@ type Issue struct {
|
|||
}
|
||||
|
||||
type ListIssueOption struct {
|
||||
Page int
|
||||
Page int
|
||||
State string
|
||||
}
|
||||
|
||||
func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, error) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue