Issue/Pull add IsLocked Property (#357)

Merge branch 'master' into issue-pull_add_IsLocked

Issue/Pull add IsLocked Property

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitea/go-sdk/pulls/357
Reviewed-by: John Olheiser <john.olheiser@gmail.com>
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
6543 2020-06-04 01:01:13 +00:00 committed by Lunny Xiao
parent 98cfcfe13b
commit 8829e1fe6f
2 changed files with 2 additions and 0 deletions

View file

@ -44,6 +44,7 @@ type Issue struct {
Assignees []*User `json:"assignees"`
// Whether the issue is open or closed
State StateType `json:"state"`
IsLocked bool `json:"is_locked"`
Comments int `json:"comments"`
Created time.Time `json:"created_at"`
Updated time.Time `json:"updated_at"`

View file

@ -35,6 +35,7 @@ type PullRequest struct {
Assignee *User `json:"assignee"`
Assignees []*User `json:"assignees"`
State StateType `json:"state"`
IsLocked bool `json:"is_locked"`
Comments int `json:"comments"`
HTMLURL string `json:"html_url"`