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

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

View file

@ -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) {

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