Skip to content

Commit 1f42c84

Browse files
authored
Merge pull request #122 from DrMagPie/v5
Added missing field
2 parents 30fb8f8 + 03cee75 commit 1f42c84

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

github/github_test.go

+1-1
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
{

github/payload.go

+8-7
Original file line numberDiff line numberDiff line change
@@ -2986,13 +2986,14 @@ type PingPayload struct {
29862986
type ProjectCardPayload struct {
29872987
Action string `json:"action"`
29882988
ProjectCard struct {
2989-
URL string `json:"url"`
2990-
ColumnURL string `json:"column_url"`
2991-
ColumnID int64 `json:"column_id"`
2992-
ID int64 `json:"id"`
2993-
NodeID string `json:"node_id"`
2994-
Note *string `json:"note"`
2995-
Creator struct {
2989+
URL string `json:"url"`
2990+
ProjectURL string `json:"project_url"`
2991+
ColumnURL string `json:"column_url"`
2992+
ColumnID int64 `json:"column_id"`
2993+
ID int64 `json:"id"`
2994+
NodeID string `json:"node_id"`
2995+
Note *string `json:"note"`
2996+
Creator struct {
29962997
Login string `json:"login"`
29972998
ID int64 `json:"id"`
29982999
NodeID string `json:"node_id"`

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+
}

0 commit comments

Comments
 (0)