Skip to content

Commit 9a9f42e

Browse files
author
Aleksey Andreyanov
committed
Added support draft pull request for github
1 parent cb4aa3d commit 9a9f42e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

github/payload.go

+1
Original file line numberDiff line numberDiff line change
@@ -3589,6 +3589,7 @@ type PullRequestPayload struct {
35893589
Assignee *Assignee `json:"assignee"`
35903590
Assignees []*Assignee `json:"assignees"`
35913591
Milestone *Milestone `json:"milestone"`
3592+
Draft bool `json:"draft"`
35923593
CommitsURL string `json:"commits_url"`
35933594
ReviewCommentsURL string `json:"review_comments_url"`
35943595
ReviewCommentURL string `json:"review_comment_url"`

testdata/github/pull-request.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"merge_commit_sha": null,
4040
"assignee": null,
4141
"milestone": null,
42+
"draft": false,
4243
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits",
4344
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments",
4445
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",

0 commit comments

Comments
 (0)