Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Actions Billing returns total_paid_minutes_used as float64 #2284

Merged
merged 1 commit into from Feb 9, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion github/billing.go
Expand Up @@ -19,7 +19,7 @@ type BillingService service
// ActionBilling represents a GitHub Action billing.
type ActionBilling struct {
TotalMinutesUsed int `json:"total_minutes_used"`
TotalPaidMinutesUsed int `json:"total_paid_minutes_used"`
TotalPaidMinutesUsed float64 `json:"total_paid_minutes_used"`
IncludedMinutes int `json:"included_minutes"`
MinutesUsedBreakdown MinutesUsedBreakdown `json:"minutes_used_breakdown"`
}
Expand Down
2 changes: 1 addition & 1 deletion github/billing_test.go
Expand Up @@ -22,7 +22,7 @@ func TestBillingService_GetActionsBillingOrg(t *testing.T) {
testMethod(t, r, "GET")
fmt.Fprint(w, `{
"total_minutes_used": 305,
"total_paid_minutes_used": 0,
"total_paid_minutes_used": 0.0,
"included_minutes": 3000,
"minutes_used_breakdown": {
"UBUNTU": 205,
Expand Down