@@ -39,6 +39,7 @@ type Issue struct {
39
39
OriginalAuthorID int64 `json:"original_author_id"`
40
40
Title string `json:"title"`
41
41
Body string `json:"body"`
42
+ Ref string `json:"ref"`
42
43
Labels []* Label `json:"labels"`
43
44
Milestone * Milestone `json:"milestone"`
44
45
// deprecated
@@ -173,7 +174,9 @@ func (c *Client) GetIssue(owner, repo string, index int64) (*Issue, *Response, e
173
174
type CreateIssueOption struct {
174
175
Title string `json:"title"`
175
176
Body string `json:"body"`
176
- // username of assignee
177
+ Ref string `json:"ref"`
178
+ // deprecated
179
+ // TODO: rm on sdk 0.15.0
177
180
Assignee string `json:"assignee"`
178
181
Assignees []string `json:"assignees"`
179
182
Deadline * time.Time `json:"due_date"`
@@ -210,8 +213,11 @@ func (c *Client) CreateIssue(owner, repo string, opt CreateIssueOption) (*Issue,
210
213
211
214
// EditIssueOption options for editing an issue
212
215
type EditIssueOption struct {
213
- Title string `json:"title"`
214
- Body * string `json:"body"`
216
+ Title string `json:"title"`
217
+ Body * string `json:"body"`
218
+ Ref * string `json:"ref"`
219
+ // deprecated
220
+ // TODO: rm on sdk 0.15.0
215
221
Assignee * string `json:"assignee"`
216
222
Assignees []string `json:"assignees"`
217
223
Milestone * int64 `json:"milestone"`
0 commit comments