Skip to content

Commit

Permalink
Merge pull request #106 from wrewolf/patch-1
Browse files Browse the repository at this point in the history
Added support draft pull request for github
  • Loading branch information
Toshik1978 committed Jan 4, 2021
2 parents 1f42c84 + ee81f21 commit 9d685f3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion github/github_test.go
Expand Up @@ -420,7 +420,7 @@ func TestWebhooks(t *testing.T) {
filename: "../testdata/github/pull-request.json",
headers: http.Header{
"X-Github-Event": []string{"pull_request"},
"X-Hub-Signature": []string{"sha1=35712c8d2bc197b7d07621dcf20d2fb44620508f"},
"X-Hub-Signature": []string{"sha1=88972f972db301178aa13dafaf112d26416a15e6"},
},
},
{
Expand Down
1 change: 1 addition & 0 deletions github/payload.go
Expand Up @@ -3590,6 +3590,7 @@ type PullRequestPayload struct {
Assignee *Assignee `json:"assignee"`
Assignees []*Assignee `json:"assignees"`
Milestone *Milestone `json:"milestone"`
Draft bool `json:"draft"`
CommitsURL string `json:"commits_url"`
ReviewCommentsURL string `json:"review_comments_url"`
ReviewCommentURL string `json:"review_comment_url"`
Expand Down
1 change: 1 addition & 0 deletions testdata/github/pull-request.json
Expand Up @@ -39,6 +39,7 @@
"merge_commit_sha": null,
"assignee": null,
"milestone": null,
"draft": false,
"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_comment_url": "https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}",
Expand Down

0 comments on commit 9d685f3

Please sign in to comment.