Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 66fbec9

Browse files
committed
GitHub-API compliance
1 parent 0a0a04c commit 66fbec9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

gitea/issue.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ type Issue struct {
4141
}
4242

4343
type ListIssueOption struct {
44-
Page int
44+
Page int
45+
State string
4546
}
4647

4748
func (c *Client) ListRepoIssues(owner, repo string, opt ListIssueOption) ([]*Issue, error) {

gitea/issue_label.go

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type Label struct {
1414
ID int64 `json:"id"`
1515
Name string `json:"name"`
1616
Color string `json:"color"`
17+
URL string `json:"url"`
1718
}
1819

1920
func (c *Client) ListRepoLabels(owner, repo string) ([]*Label, error) {

gitea/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// User represents a API user.
1212
type User struct {
1313
ID int64 `json:"id"`
14-
UserName string `json:"username"`
14+
UserName string `json:"login"`
1515
FullName string `json:"full_name"`
1616
Email string `json:"email"`
1717
AvatarUrl string `json:"avatar_url"`

0 commit comments

Comments
 (0)