Skip to content

Commit 6a33ade

Browse files
committed
Change type of HookDelivery.InstallationID to Int64.
1 parent 1d9884e commit 6a33ade

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

github/github-accessors.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-accessors_test.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github-stringify_test.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/repos_hooks_deliveries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type HookDelivery struct {
2626
StatusCode *int `json:"status_code"`
2727
Event *string `json:"event"`
2828
Action *string `json:"action"`
29-
InstallationID *string `json:"installation_id"`
29+
InstallationID *int64 `json:"installation_id"`
3030
RepositoryID *int64 `json:"repository_id"`
3131

3232
// Request is populated by GetHookDelivery.

github/repos_hooks_deliveries_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func TestHookDelivery_Marshal(t *testing.T) {
288288
StatusCode: Int(1),
289289
Event: String("guid"),
290290
Action: String("guid"),
291-
InstallationID: String("guid"),
291+
InstallationID: Int64(1),
292292
RepositoryID: Int64(1),
293293
Request: &HookRequest{
294294
Headers: header,
@@ -310,7 +310,7 @@ func TestHookDelivery_Marshal(t *testing.T) {
310310
"status_code": 1,
311311
"event": "guid",
312312
"action": "guid",
313-
"installation_id": "guid",
313+
"installation_id": 1,
314314
"repository_id": 1,
315315
"request": {
316316
"headers": {

0 commit comments

Comments
 (0)