Skip to content

Commit bfd950a

Browse files
authored
Merge branch 'v5' into v5
2 parents a5ce17c + 9d685f3 commit bfd950a

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: go
22
go:
3-
- 1.12.1
3+
- 1.13.15
44
- tip
55
matrix:
66
allow_failures:
@@ -29,6 +29,6 @@ script:
2929
- make test
3030

3131
after_success: |
32-
[ $TRAVIS_GO_VERSION = 1.11.2 ] &&
32+
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
3333
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
3434
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN

github/github_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ func TestWebhooks(t *testing.T) {
380380
filename: "../testdata/github/project-card.json",
381381
headers: http.Header{
382382
"X-Github-Event": []string{"project_card"},
383-
"X-Hub-Signature": []string{"sha1=495dec0d6449d16b71f2ddcd37d595cb9b04b1d8"},
383+
"X-Hub-Signature": []string{"sha1=f5ed1572b04f0e03c8d5f5e3f7fa63737bef76d7"},
384384
},
385385
},
386386
{
@@ -420,7 +420,7 @@ func TestWebhooks(t *testing.T) {
420420
filename: "../testdata/github/pull-request.json",
421421
headers: http.Header{
422422
"X-Github-Event": []string{"pull_request"},
423-
"X-Hub-Signature": []string{"sha1=35712c8d2bc197b7d07621dcf20d2fb44620508f"},
423+
"X-Hub-Signature": []string{"sha1=88972f972db301178aa13dafaf112d26416a15e6"},
424424
},
425425
},
426426
{

github/payload.go

+9-7
Original file line numberDiff line numberDiff line change
@@ -2999,13 +2999,14 @@ type PingPayload struct {
29992999
type ProjectCardPayload struct {
30003000
Action string `json:"action"`
30013001
ProjectCard struct {
3002-
URL string `json:"url"`
3003-
ColumnURL string `json:"column_url"`
3004-
ColumnID int64 `json:"column_id"`
3005-
ID int64 `json:"id"`
3006-
NodeID string `json:"node_id"`
3007-
Note *string `json:"note"`
3008-
Creator struct {
3002+
URL string `json:"url"`
3003+
ProjectURL string `json:"project_url"`
3004+
ColumnURL string `json:"column_url"`
3005+
ColumnID int64 `json:"column_id"`
3006+
ID int64 `json:"id"`
3007+
NodeID string `json:"node_id"`
3008+
Note *string `json:"note"`
3009+
Creator struct {
30093010
Login string `json:"login"`
30103011
ID int64 `json:"id"`
30113012
NodeID string `json:"node_id"`
@@ -3602,6 +3603,7 @@ type PullRequestPayload struct {
36023603
Assignee *Assignee `json:"assignee"`
36033604
Assignees []*Assignee `json:"assignees"`
36043605
Milestone *Milestone `json:"milestone"`
3606+
Draft bool `json:"draft"`
36053607
CommitsURL string `json:"commits_url"`
36063608
ReviewCommentsURL string `json:"review_comments_url"`
36073609
ReviewCommentURL string `json:"review_comment_url"`

gitlab/payload.go

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ type MergeRequestEventPayload struct {
5656
Changes Changes `json:"changes"`
5757
Project Project `json:"project"`
5858
Repository Repository `json:"repository"`
59+
Labels []Label `json:"labels"`
5960
}
6061

6162
// PushEventPayload contains the information for GitLab's push event

testdata/github/project-card.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"action": "created",
33
"project_card": {
44
"url": "https://api.github.com/projects/columns/cards/1266091",
5+
"project_url": "https://api.github.com/projects/6047634",
56
"column_url": "https://api.github.com/projects/columns/515520",
67
"column_id": 515520,
78
"id": 1266091,
@@ -27,7 +28,7 @@
2728
},
2829
"created_at": 1483569391,
2930
"updated_at": 1483569391,
30-
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
31+
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
3132
},
3233
"repository": {
3334
"id": 35129377,
@@ -145,4 +146,4 @@
145146
"type": "User",
146147
"site_admin": false
147148
}
148-
}
149+
}

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)