Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 59fb74817c | |||
| aa941874be | |||
| bfd950a988 | |||
| 9d685f3a73 | |||
| 1f42c84783 | |||
| ee81f21da7 | |||
| 03cee75fc3 | |||
| 86c24d8570 | |||
| a5ce17cac3 | |||
| efae47c3b9 | |||
| 9a9f42e1b8 |
+7
-7
@@ -1,16 +1,16 @@
|
|||||||
language: go
|
language: go
|
||||||
go:
|
go:
|
||||||
- 1.13.15
|
- 1.13.15
|
||||||
- tip
|
- tip
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
recipients: dean.karn@gmail.com
|
recipients: dean.karn@gmail.com
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: always
|
on_failure: always
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- go get -u github.com/go-playground/overalls
|
- go get -u github.com/go-playground/overalls
|
||||||
@@ -26,7 +26,7 @@ before_script:
|
|||||||
- go get -t ./...
|
- go get -t ./...
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
|
|
||||||
after_success: |
|
after_success: |
|
||||||
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
|
[ $TRAVIS_GO_VERSION = 1.13.15 ] &&
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
Library webhooks
|
Library webhooks
|
||||||
================
|
================
|
||||||
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">
|
||||||
[](https://travis-ci.org/go-playground/webhooks)
|
[](https://travis-ci.org/go-playground/webhooks)
|
||||||
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
[](https://coveralls.io/github/go-playground/webhooks?branch=v5)
|
||||||
[](https://goreportcard.com/report/go-playground/webhooks)
|
[](https://goreportcard.com/report/go-playground/webhooks)
|
||||||
|
|||||||
@@ -380,7 +380,7 @@ func TestWebhooks(t *testing.T) {
|
|||||||
filename: "../testdata/github/project-card.json",
|
filename: "../testdata/github/project-card.json",
|
||||||
headers: http.Header{
|
headers: http.Header{
|
||||||
"X-Github-Event": []string{"project_card"},
|
"X-Github-Event": []string{"project_card"},
|
||||||
"X-Hub-Signature": []string{"sha1=495dec0d6449d16b71f2ddcd37d595cb9b04b1d8"},
|
"X-Hub-Signature": []string{"sha1=f5ed1572b04f0e03c8d5f5e3f7fa63737bef76d7"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -420,7 +420,7 @@ func TestWebhooks(t *testing.T) {
|
|||||||
filename: "../testdata/github/pull-request.json",
|
filename: "../testdata/github/pull-request.json",
|
||||||
headers: http.Header{
|
headers: http.Header{
|
||||||
"X-Github-Event": []string{"pull_request"},
|
"X-Github-Event": []string{"pull_request"},
|
||||||
"X-Hub-Signature": []string{"sha1=35712c8d2bc197b7d07621dcf20d2fb44620508f"},
|
"X-Hub-Signature": []string{"sha1=88972f972db301178aa13dafaf112d26416a15e6"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
+22
-7
@@ -1662,6 +1662,11 @@ type IssueCommentPayload struct {
|
|||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
AuthorAssociation string `json:"author_association"`
|
AuthorAssociation string `json:"author_association"`
|
||||||
} `json:"comment"`
|
} `json:"comment"`
|
||||||
|
Changes *struct {
|
||||||
|
Body *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"body"`
|
||||||
|
} `json:"changes"`
|
||||||
Repository struct {
|
Repository struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
@@ -1826,6 +1831,14 @@ type IssuesPayload struct {
|
|||||||
ClosedAt *time.Time `json:"closed_at"`
|
ClosedAt *time.Time `json:"closed_at"`
|
||||||
Body string `json:"body"`
|
Body string `json:"body"`
|
||||||
} `json:"issue"`
|
} `json:"issue"`
|
||||||
|
Changes *struct {
|
||||||
|
Title *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"title"`
|
||||||
|
Body *struct {
|
||||||
|
From string `json:"from"`
|
||||||
|
} `json:"body"`
|
||||||
|
} `json:"changes"`
|
||||||
Repository struct {
|
Repository struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
@@ -2986,13 +2999,14 @@ type PingPayload struct {
|
|||||||
type ProjectCardPayload struct {
|
type ProjectCardPayload struct {
|
||||||
Action string `json:"action"`
|
Action string `json:"action"`
|
||||||
ProjectCard struct {
|
ProjectCard struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
ColumnURL string `json:"column_url"`
|
ProjectURL string `json:"project_url"`
|
||||||
ColumnID int64 `json:"column_id"`
|
ColumnURL string `json:"column_url"`
|
||||||
ID int64 `json:"id"`
|
ColumnID int64 `json:"column_id"`
|
||||||
NodeID string `json:"node_id"`
|
ID int64 `json:"id"`
|
||||||
Note *string `json:"note"`
|
NodeID string `json:"node_id"`
|
||||||
Creator struct {
|
Note *string `json:"note"`
|
||||||
|
Creator struct {
|
||||||
Login string `json:"login"`
|
Login string `json:"login"`
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
NodeID string `json:"node_id"`
|
NodeID string `json:"node_id"`
|
||||||
@@ -3589,6 +3603,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"`
|
||||||
|
|||||||
Vendored
+3
-2
@@ -2,6 +2,7 @@
|
|||||||
"action": "created",
|
"action": "created",
|
||||||
"project_card": {
|
"project_card": {
|
||||||
"url": "https://api.github.com/projects/columns/cards/1266091",
|
"url": "https://api.github.com/projects/columns/cards/1266091",
|
||||||
|
"project_url": "https://api.github.com/projects/6047634",
|
||||||
"column_url": "https://api.github.com/projects/columns/515520",
|
"column_url": "https://api.github.com/projects/columns/515520",
|
||||||
"column_id": 515520,
|
"column_id": 515520,
|
||||||
"id": 1266091,
|
"id": 1266091,
|
||||||
@@ -27,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
"created_at": 1483569391,
|
"created_at": 1483569391,
|
||||||
"updated_at": 1483569391,
|
"updated_at": 1483569391,
|
||||||
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
|
"content_url": "https://api.github.com/repos/baxterthehacker/public-repo/issues/2"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"id": 35129377,
|
"id": 35129377,
|
||||||
@@ -145,4 +146,4 @@
|
|||||||
"type": "User",
|
"type": "User",
|
||||||
"site_admin": false
|
"site_admin": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Vendored
+1
@@ -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}",
|
||||||
|
|||||||
Reference in New Issue
Block a user