Skip to content

Commit 8ba2c80

Browse files
committed
Add omitempty.
1 parent 6a33ade commit 8ba2c80

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

github/repos_hooks_deliveries.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ import (
1717
// - https://docs.github.com/en/rest/reference/repos#list-deliveries-for-a-repository-webhook
1818
// - https://docs.github.com/en/rest/reference/repos#get-a-delivery-for-a-repository-webhook
1919
type HookDelivery struct {
20-
ID *int64 `json:"id"`
21-
GUID *string `json:"guid"`
22-
DeliveredAt *Timestamp `json:"delivered_at"`
23-
Redelivery *bool `json:"redelivery"`
24-
Duration *float64 `json:"duration"`
25-
Status *string `json:"status"`
26-
StatusCode *int `json:"status_code"`
27-
Event *string `json:"event"`
28-
Action *string `json:"action"`
29-
InstallationID *int64 `json:"installation_id"`
30-
RepositoryID *int64 `json:"repository_id"`
20+
ID *int64 `json:"id,omitempty"`
21+
GUID *string `json:"guid,omitempty"`
22+
DeliveredAt *Timestamp `json:"delivered_at,omitempty"`
23+
Redelivery *bool `json:"redelivery,omitempty"`
24+
Duration *float64 `json:"duration,omitempty"`
25+
Status *string `json:"status,omitempty"`
26+
StatusCode *int `json:"status_code,omitempty"`
27+
Event *string `json:"event,omitempty"`
28+
Action *string `json:"action,omitempty"`
29+
InstallationID *int64 `json:"installation_id,omitempty"`
30+
RepositoryID *int64 `json:"repository_id,omitempty"`
3131

3232
// Request is populated by GetHookDelivery.
3333
Request *HookRequest `json:"request,omitempty"`

0 commit comments

Comments
 (0)