Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github/billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ type UsageItem struct {
Date *string `json:"date"`
Product *string `json:"product"`
SKU *string `json:"sku"`
Quantity *int `json:"quantity"`
Quantity *float64 `json:"quantity"`
UnitType *string `json:"unitType"`
PricePerUnit *float64 `json:"pricePerUnit"`
GrossAmount *float64 `json:"grossAmount"`
Expand Down
4 changes: 2 additions & 2 deletions github/billing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ func TestBillingService_GetUsageReportOrg(t *testing.T) {
Date: Ptr("2023-08-01"),
Product: Ptr("Actions"),
SKU: Ptr("Actions Linux"),
Quantity: Ptr(100),
Quantity: Ptr(100.0),
UnitType: Ptr("minutes"),
PricePerUnit: Ptr(0.008),
GrossAmount: Ptr(0.8),
Expand Down Expand Up @@ -637,7 +637,7 @@ func TestBillingService_GetUsageReportUser(t *testing.T) {
Date: Ptr("2023-08-15"),
Product: Ptr("Codespaces"),
SKU: Ptr("Codespaces Linux"),
Quantity: Ptr(50),
Quantity: Ptr(50.0),
UnitType: Ptr("hours"),
PricePerUnit: Ptr(0.18),
GrossAmount: Ptr(9.0),
Expand Down
10 changes: 5 additions & 5 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading