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

Commit cc453bf

Browse files
authored
Merge pull request #9 from go-gitea/fix/github-compliance
GitHub-API compliance
2 parents 156c90f + 66fbec9 commit cc453bf

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

gitea/issue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ type Issue struct {
4747

4848
// ListIssueOption list issue options
4949
type ListIssueOption struct {
50-
Page int
50+
Page int
51+
State string
5152
}
5253

5354
// ListRepoIssues list one repos' issues

gitea/issue_label.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ type Label struct {
1515
ID int64 `json:"id"`
1616
Name string `json:"name"`
1717
Color string `json:"color"`
18+
URL string `json:"url"`
1819
}
1920

2021
// ListRepoLabels list lables of one reppsitory

gitea/user.go

Lines changed: 1 addition & 1 deletion
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)