@@ -16,22 +16,11 @@ import (
1616// Conversation represents an conversation in a repository
1717// swagger:model
1818type Conversation struct {
19- ID int64 `json:"id"`
20- URL string `json:"url"`
21- HTMLURL string `json:"html_url"`
22- Index int64 `json:"number"`
23- Poster * User `json:"user"`
24- OriginalAuthor string `json:"original_author"`
25- OriginalAuthorID int64 `json:"original_author_id"`
26- Title string `json:"title"`
27- Body string `json:"body"`
28- Ref string `json:"ref"`
29- Attachments []* Attachment `json:"assets"`
30- Labels []* Label `json:"labels"`
31- Milestone * Milestone `json:"milestone"`
32- // deprecated
33- Assignee * User `json:"assignee"`
34- Assignees []* User `json:"assignees"`
19+ ID int64 `json:"id"`
20+ URL string `json:"url"`
21+ HTMLURL string `json:"html_url"`
22+ Index int64 `json:"number"`
23+ Ref string `json:"ref"`
3524 // Whether the conversation is open or locked
3625 //
3726 // type: string
@@ -48,35 +37,12 @@ type Conversation struct {
4837 // swagger:strfmt date-time
4938 Deadline * time.Time `json:"due_date"`
5039
51- PullRequest * PullRequestMeta `json:"pull_request"`
52- Repo * RepositoryMeta `json:"repository"`
53-
54- PinOrder int `json:"pin_order"`
40+ Repo * RepositoryMeta `json:"repository"`
5541}
5642
5743// CreateConversationOption options to create one conversation
5844type CreateConversationOption struct {
59- // required:true
60- Title string `json:"title" binding:"Required"`
61- Body string `json:"body"`
62- Ref string `json:"ref"`
63- // deprecated
64- Assignee string `json:"assignee"`
65- Assignees []string `json:"assignees"`
66- // swagger:strfmt date-time
67- Deadline * time.Time `json:"due_date"`
68- // milestone id
69- Milestone int64 `json:"milestone"`
70- // list of label ids
71- Labels []int64 `json:"labels"`
72- Locked bool `json:"locked"`
73- }
74-
75- // EditConversationOption options for editing an conversation
76- type EditConversationOption struct {
77- Title string `json:"title"`
78- Body * string `json:"body"`
79- Ref * string `json:"ref"`
45+ Locked bool `json:"locked"`
8046}
8147
8248// ConversationFormFieldType defines conversation form field type, can be "markdown", "textarea", "input", "dropdown" or "checkboxes"
0 commit comments