Move node_id field from status to status.commit in StatusEvent

This commit is contained in:
Riley Martine
2019-07-08 17:11:12 -04:00
parent 1751865845
commit 3534f74a83
+1 -1
View File
@@ -5329,7 +5329,6 @@ type SecurityAdvisoryPayload struct {
// StatusPayload contains the information for GitHub's status hook event // StatusPayload contains the information for GitHub's status hook event
type StatusPayload struct { type StatusPayload struct {
ID int64 `json:"id"` ID int64 `json:"id"`
NodeID string `json:"node_id"`
Sha string `json:"sha"` Sha string `json:"sha"`
Name string `json:"name"` Name string `json:"name"`
TargetURL *string `json:"target_url"` TargetURL *string `json:"target_url"`
@@ -5337,6 +5336,7 @@ type StatusPayload struct {
Description *string `json:"description"` Description *string `json:"description"`
State string `json:"state"` State string `json:"state"`
Commit struct { Commit struct {
NodeID string `json:"node_id"`
Sha string `json:"sha"` Sha string `json:"sha"`
Commit struct { Commit struct {
Author struct { Author struct {