Skip to content

Commit 7b27977

Browse files
authored
Change PrivateRepos from int to int64 (#2738)
Fixes: #2736.
1 parent 5090d28 commit 7b27977

File tree

7 files changed

+24
-24
lines changed

7 files changed

+24
-24
lines changed

github/github-accessors.go

Lines changed: 5 additions & 5 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: 5 additions & 5 deletions
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: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/orgs.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ type Organization struct {
3636
Following *int `json:"following,omitempty"`
3737
CreatedAt *Timestamp `json:"created_at,omitempty"`
3838
UpdatedAt *Timestamp `json:"updated_at,omitempty"`
39-
TotalPrivateRepos *int `json:"total_private_repos,omitempty"`
40-
OwnedPrivateRepos *int `json:"owned_private_repos,omitempty"`
39+
TotalPrivateRepos *int64 `json:"total_private_repos,omitempty"`
40+
OwnedPrivateRepos *int64 `json:"owned_private_repos,omitempty"`
4141
PrivateGists *int `json:"private_gists,omitempty"`
4242
DiskUsage *int `json:"disk_usage,omitempty"`
4343
Collaborators *int `json:"collaborators,omitempty"`
@@ -121,7 +121,7 @@ type Plan struct {
121121
Name *string `json:"name,omitempty"`
122122
Space *int `json:"space,omitempty"`
123123
Collaborators *int `json:"collaborators,omitempty"`
124-
PrivateRepos *int `json:"private_repos,omitempty"`
124+
PrivateRepos *int64 `json:"private_repos,omitempty"`
125125
FilledSeats *int `json:"filled_seats,omitempty"`
126126
Seats *int `json:"seats,omitempty"`
127127
}

github/orgs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ func TestPlan_Marshal(t *testing.T) {
452452
Name: String("name"),
453453
Space: Int(1),
454454
Collaborators: Int(1),
455-
PrivateRepos: Int(1),
455+
PrivateRepos: Int64(1),
456456
FilledSeats: Int(1),
457457
Seats: Int(1),
458458
}

github/users.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ type User struct {
4141
SuspendedAt *Timestamp `json:"suspended_at,omitempty"`
4242
Type *string `json:"type,omitempty"`
4343
SiteAdmin *bool `json:"site_admin,omitempty"`
44-
TotalPrivateRepos *int `json:"total_private_repos,omitempty"`
45-
OwnedPrivateRepos *int `json:"owned_private_repos,omitempty"`
44+
TotalPrivateRepos *int64 `json:"total_private_repos,omitempty"`
45+
OwnedPrivateRepos *int64 `json:"owned_private_repos,omitempty"`
4646
PrivateGists *int `json:"private_gists,omitempty"`
4747
DiskUsage *int `json:"disk_usage,omitempty"`
4848
Collaborators *int `json:"collaborators,omitempty"`

github/users_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ func TestUser_Marshal(t *testing.T) {
8484
SuspendedAt: &Timestamp{referenceTime},
8585
Type: String("test type"),
8686
SiteAdmin: Bool(false),
87-
TotalPrivateRepos: Int(2),
88-
OwnedPrivateRepos: Int(1),
87+
TotalPrivateRepos: Int64(2),
88+
OwnedPrivateRepos: Int64(1),
8989
PrivateGists: Int(1),
9090
DiskUsage: Int(1),
9191
Collaborators: Int(1),
@@ -94,7 +94,7 @@ func TestUser_Marshal(t *testing.T) {
9494
Name: String("silver"),
9595
Space: Int(1024),
9696
Collaborators: Int(10),
97-
PrivateRepos: Int(4),
97+
PrivateRepos: Int64(4),
9898
FilledSeats: Int(24),
9999
Seats: Int(1),
100100
},

0 commit comments

Comments
 (0)