Skip to content

GitHub Actions Billing returns total_minutes_used and included_minutes as float64 #2642

@loispostula

Description

@loispostula

GitHub returns the total_paid_minutes_used value as float64 in the /orgs/{org}/settings/billing/actions endpoint.
Currently an Int is expected.
Example

curl -H "Authorization: Bearer <TOKEN>" \
-H "Accept: application/vnd.github.v3+json"  \
https://api.github.com/orgs/{org}/settings/billing/actions
{
  "total_minutes_used": 1234.0,
  "total_paid_minutes_used": 3959.0,
  "included_minutes": 3000.0,
  "minutes_used_breakdown": {
    "UBUNTU": 1234,
    "MACOS": 1234,
    "WINDOWS": 0
  }
}

This is similar to: #2283

Metadata

Metadata

Assignees

No one assigned

    Labels

    Breaking API ChangePR will require a bump to the major version num in next release. Look here to see the change(s).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions