@@ -99,13 +99,14 @@ func (s *pullService) Close(ctx context.Context, repo string, number int) (*scm.
99
99
}
100
100
101
101
type pr struct {
102
- Number int `json:"iid"`
103
- Sha string `json:"sha"`
104
- Title string `json:"title"`
105
- Desc string `json:"description"`
106
- State string `json:"state"`
107
- Link string `json:"web_url"`
108
- Author struct {
102
+ Number int `json:"iid"`
103
+ Sha string `json:"sha"`
104
+ Title string `json:"title"`
105
+ Desc string `json:"description"`
106
+ State string `json:"state"`
107
+ WorkInProgress bool `json:"work_in_progress"`
108
+ Link string `json:"web_url"`
109
+ Author struct {
109
110
Username string `json:"username"`
110
111
Email string `json:"email"`
111
112
Name string `json:"name"`
@@ -160,6 +161,7 @@ func convertPullRequest(from *pr) *scm.PullRequest {
160
161
Source : from .SourceBranch ,
161
162
Target : from .TargetBranch ,
162
163
Link : from .Link ,
164
+ Draft : from .WorkInProgress ,
163
165
Closed : from .State != "opened" ,
164
166
Merged : from .State == "merged" ,
165
167
Author : scm.User {
0 commit comments