File tree 6 files changed +18
-13
lines changed
6 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1
1
language : go
2
2
go :
3
- - 1.12.1
3
+ - 1.13.15
4
4
- tip
5
5
matrix :
6
6
allow_failures :
@@ -29,6 +29,6 @@ script:
29
29
- make test
30
30
31
31
after_success : |
32
- [ $TRAVIS_GO_VERSION = 1.11.2 ] &&
32
+ [ $TRAVIS_GO_VERSION = 1.13.15 ] &&
33
33
overalls -project="github.com/go-playground/webhooks" -covermode=count -ignore=.git,_examples,testdata -debug &&
34
34
goveralls -coverprofile=overalls.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ func TestWebhooks(t *testing.T) {
380
380
filename : "../testdata/github/project-card.json" ,
381
381
headers : http.Header {
382
382
"X-Github-Event" : []string {"project_card" },
383
- "X-Hub-Signature" : []string {"sha1=495dec0d6449d16b71f2ddcd37d595cb9b04b1d8 " },
383
+ "X-Hub-Signature" : []string {"sha1=f5ed1572b04f0e03c8d5f5e3f7fa63737bef76d7 " },
384
384
},
385
385
},
386
386
{
@@ -420,7 +420,7 @@ func TestWebhooks(t *testing.T) {
420
420
filename : "../testdata/github/pull-request.json" ,
421
421
headers : http.Header {
422
422
"X-Github-Event" : []string {"pull_request" },
423
- "X-Hub-Signature" : []string {"sha1=35712c8d2bc197b7d07621dcf20d2fb44620508f " },
423
+ "X-Hub-Signature" : []string {"sha1=88972f972db301178aa13dafaf112d26416a15e6 " },
424
424
},
425
425
},
426
426
{
Original file line number Diff line number Diff line change @@ -2999,13 +2999,14 @@ type PingPayload struct {
2999
2999
type ProjectCardPayload struct {
3000
3000
Action string `json:"action"`
3001
3001
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 {
3009
3010
Login string `json:"login"`
3010
3011
ID int64 `json:"id"`
3011
3012
NodeID string `json:"node_id"`
@@ -3602,6 +3603,7 @@ type PullRequestPayload struct {
3602
3603
Assignee * Assignee `json:"assignee"`
3603
3604
Assignees []* Assignee `json:"assignees"`
3604
3605
Milestone * Milestone `json:"milestone"`
3606
+ Draft bool `json:"draft"`
3605
3607
CommitsURL string `json:"commits_url"`
3606
3608
ReviewCommentsURL string `json:"review_comments_url"`
3607
3609
ReviewCommentURL string `json:"review_comment_url"`
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ type MergeRequestEventPayload struct {
56
56
Changes Changes `json:"changes"`
57
57
Project Project `json:"project"`
58
58
Repository Repository `json:"repository"`
59
+ Labels []Label `json:"labels"`
59
60
}
60
61
61
62
// PushEventPayload contains the information for GitLab's push event
Original file line number Diff line number Diff line change 2
2
"action" : " created" ,
3
3
"project_card" : {
4
4
"url" : " https://api.github.com/projects/columns/cards/1266091" ,
5
+ "project_url" : " https://api.github.com/projects/6047634" ,
5
6
"column_url" : " https://api.github.com/projects/columns/515520" ,
6
7
"column_id" : 515520 ,
7
8
"id" : 1266091 ,
27
28
},
28
29
"created_at" : 1483569391 ,
29
30
"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"
31
32
},
32
33
"repository" : {
33
34
"id" : 35129377 ,
145
146
"type" : " User" ,
146
147
"site_admin" : false
147
148
}
148
- }
149
+ }
Original file line number Diff line number Diff line change 39
39
"merge_commit_sha" : null ,
40
40
"assignee" : null ,
41
41
"milestone" : null ,
42
+ "draft" : false ,
42
43
"commits_url" : " https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/commits" ,
43
44
"review_comments_url" : " https://api.github.com/repos/baxterthehacker/public-repo/pulls/1/comments" ,
44
45
"review_comment_url" : " https://api.github.com/repos/baxterthehacker/public-repo/pulls/comments{/number}" ,
You can’t perform that action at this time.
0 commit comments