@@ -85,16 +85,16 @@ func (c *Client) GetPullRequest(owner, repo string, index int64) (*PullRequest,
85
85
86
86
// CreatePullRequestOption options when creating a pull request
87
87
type CreatePullRequestOption struct {
88
- Head string `json:"head" binding:"Required"`
89
- Base string `json:"base" binding:"Required"`
90
- Title string `json:"title" binding:"Required"`
91
- Body string `json:"body"`
92
- Assignee string `json:"assignee"`
93
- Assignees []string `json:"assignees"`
94
- Milestone int64 `json:"milestone"`
95
- Labels []int64 `json:"labels"`
88
+ Head string `json:"head" binding:"Required"`
89
+ Base string `json:"base" binding:"Required"`
90
+ Title string `json:"title" binding:"Required"`
91
+ Body string `json:"body"`
92
+ Assignee string `json:"assignee"`
93
+ Assignees []string `json:"assignees"`
94
+ Milestone int64 `json:"milestone"`
95
+ Labels []int64 `json:"labels"`
96
96
// swagger:strfmt date-time
97
- Deadline * time.Time `json:"due_date"`
97
+ Deadline * time.Time `json:"due_date"`
98
98
}
99
99
100
100
// CreatePullRequest create pull request with options
@@ -110,15 +110,15 @@ func (c *Client) CreatePullRequest(owner, repo string, opt CreatePullRequestOpti
110
110
111
111
// EditPullRequestOption options when modify pull request
112
112
type EditPullRequestOption struct {
113
- Title string `json:"title"`
114
- Body string `json:"body"`
115
- Assignee string `json:"assignee"`
116
- Assignees []string `json:"assignees"`
117
- Milestone int64 `json:"milestone"`
118
- Labels []int64 `json:"labels"`
119
- State * string `json:"state"`
113
+ Title string `json:"title"`
114
+ Body string `json:"body"`
115
+ Assignee string `json:"assignee"`
116
+ Assignees []string `json:"assignees"`
117
+ Milestone int64 `json:"milestone"`
118
+ Labels []int64 `json:"labels"`
119
+ State * string `json:"state"`
120
120
// swagger:strfmt date-time
121
- Deadline * time.Time `json:"due_date"`
121
+ Deadline * time.Time `json:"due_date"`
122
122
}
123
123
124
124
// EditPullRequest modify pull request with PR id and options
0 commit comments