File tree Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Expand file tree Collapse file tree 5 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ func ToAPIIssue(issue *models.Issue) *api.Issue {
36
36
Body : issue .Content ,
37
37
Labels : ToLabelList (issue .Labels ),
38
38
State : issue .State (),
39
+ IsLocked : issue .IsLocked ,
39
40
Comments : issue .NumComments ,
40
41
Created : issue .CreatedUnix .AsTime (),
41
42
Updated : issue .UpdatedUnix .AsTime (),
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ func ToAPIPullRequest(pr *models.PullRequest) *api.PullRequest {
53
53
Assignee : apiIssue .Assignee ,
54
54
Assignees : apiIssue .Assignees ,
55
55
State : apiIssue .State ,
56
+ IsLocked : apiIssue .IsLocked ,
56
57
Comments : apiIssue .Comments ,
57
58
HTMLURL : pr .Issue .HTMLURL (),
58
59
DiffURL : pr .Issue .DiffURL (),
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ type Issue struct {
55
55
// type: string
56
56
// enum: open,closed
57
57
State StateType `json:"state"`
58
+ IsLocked bool `json:"is_locked"`
58
59
Comments int `json:"comments"`
59
60
// swagger:strfmt date-time
60
61
Created time.Time `json:"created_at"`
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ type PullRequest struct {
21
21
Assignee * User `json:"assignee"`
22
22
Assignees []* User `json:"assignees"`
23
23
State StateType `json:"state"`
24
+ IsLocked bool `json:"is_locked"`
24
25
Comments int `json:"comments"`
25
26
26
27
HTMLURL string `json:"html_url"`
Original file line number Diff line number Diff line change 12828
12828
"format": "int64",
12829
12829
"x-go-name": "ID"
12830
12830
},
12831
+ "is_locked": {
12832
+ "type": "boolean",
12833
+ "x-go-name": "IsLocked"
12834
+ },
12831
12835
"labels": {
12832
12836
"type": "array",
12833
12837
"items": {
13501
13505
"format": "int64",
13502
13506
"x-go-name": "ID"
13503
13507
},
13508
+ "is_locked": {
13509
+ "type": "boolean",
13510
+ "x-go-name": "IsLocked"
13511
+ },
13504
13512
"labels": {
13505
13513
"type": "array",
13506
13514
"items": {
You can’t perform that action at this time.
0 commit comments