From 3534f74a83a827611332ed0c50210e437973b850 Mon Sep 17 00:00:00 2001 From: Riley Martine Date: Mon, 8 Jul 2019 17:11:12 -0400 Subject: [PATCH 1/2] Move node_id field from status to status.commit in StatusEvent --- github/payload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/payload.go b/github/payload.go index 0e1bcdf..0e1b344 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5329,7 +5329,6 @@ type SecurityAdvisoryPayload struct { // StatusPayload contains the information for GitHub's status hook event type StatusPayload struct { ID int64 `json:"id"` - NodeID string `json:"node_id"` Sha string `json:"sha"` Name string `json:"name"` TargetURL *string `json:"target_url"` @@ -5337,6 +5336,7 @@ type StatusPayload struct { Description *string `json:"description"` State string `json:"state"` Commit struct { + NodeID string `json:"node_id"` Sha string `json:"sha"` Commit struct { Author struct { From a9a686f8e58fb67376cf19b639a389d7a5df0c59 Mon Sep 17 00:00:00 2001 From: Riley Martine Date: Mon, 8 Jul 2019 17:29:19 -0400 Subject: [PATCH 2/2] Reorder field in StatusPayload to match schema --- github/payload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/payload.go b/github/payload.go index 0e1b344..ffc5ae0 100644 --- a/github/payload.go +++ b/github/payload.go @@ -5336,8 +5336,8 @@ type StatusPayload struct { Description *string `json:"description"` State string `json:"state"` Commit struct { - NodeID string `json:"node_id"` Sha string `json:"sha"` + NodeID string `json:"node_id"` Commit struct { Author struct { Name string `json:"name"`