Merge pull request #122 from DrMagPie/v5

Added missing field
This commit is contained in:
Anton Krivenko
2021-01-04 22:36:10 +03:00
committed by GitHub
3 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -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"},
}, },
}, },
{ {
+1
View File
@@ -2987,6 +2987,7 @@ type ProjectCardPayload struct {
Action string `json:"action"` Action string `json:"action"`
ProjectCard struct { ProjectCard struct {
URL string `json:"url"` URL string `json:"url"`
ProjectURL string `json:"project_url"`
ColumnURL string `json:"column_url"` ColumnURL string `json:"column_url"`
ColumnID int64 `json:"column_id"` ColumnID int64 `json:"column_id"`
ID int64 `json:"id"` ID int64 `json:"id"`
+1
View File
@@ -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,