diff --git a/gitea/issue.go b/gitea/issue.go index dfa4fb8..002cd26 100644 --- a/gitea/issue.go +++ b/gitea/issue.go @@ -47,7 +47,8 @@ type Issue struct { // ListIssueOption list issue options type ListIssueOption struct { - Page int + Page int + State string } // ListRepoIssues list one repos' issues diff --git a/gitea/issue_label.go b/gitea/issue_label.go index ec353ed..20607f2 100644 --- a/gitea/issue_label.go +++ b/gitea/issue_label.go @@ -15,6 +15,7 @@ type Label struct { ID int64 `json:"id"` Name string `json:"name"` Color string `json:"color"` + URL string `json:"url"` } // ListRepoLabels list lables of one reppsitory diff --git a/gitea/user.go b/gitea/user.go index 4e38a6b..2560d85 100644 --- a/gitea/user.go +++ b/gitea/user.go @@ -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"`