Added support draft pull request for github

This commit is contained in:
Aleksey Andreyanov
2020-04-05 20:19:13 +03:00
parent cb4aa3d145
commit 9a9f42e1b8
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -3589,6 +3589,7 @@ type PullRequestPayload struct {
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"` Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
Draft bool `json:"draft"`
CommitsURL string `json:"commits_url"` CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"` ReviewCommentsURL string `json:"review_comments_url"`
ReviewCommentURL string `json:"review_comment_url"` ReviewCommentURL string `json:"review_comment_url"`
+1
View File
@@ -39,6 +39,7 @@
"merge_commit_sha": null, "merge_commit_sha": null,
"assignee": null, "assignee": null,
"milestone": null, "milestone": null,
"draft": false,
"commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits", "commits_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits",
"review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments", "review_comments_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments",
"review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}", "review_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",