Skip to content

Commit 86c24d8

Browse files
committed
added missing field
1 parent 30fb8f8 commit 86c24d8

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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)