codiform / gh-actions-usage

GitHub CLI Extension to display Github Actions Usage. Go version of gh-actuse.
17 stars 2 forks source link

Org/User Summary #18

Open geoffreywiseman opened 1 year ago

geoffreywiseman commented 1 year ago

If the target is an organization or user, rather than one or more specific repositories, we could provide some information from:

https://docs.github.com/en/rest/billing?apiVersion=2022-11-28#get-github-actions-billing-for-an-organization https://docs.github.com/en/rest/billing?apiVersion=2022-11-28#get-github-actions-billing-for-a-user

Doesn't line up particularly well with the current code structure -- which translates targets into repos organized by owner, and then works from that list. So by the time you're requesting workflow information, you've already lost the context of whether or not a whole user/org was requested. But that's a problem for me to figure out.

Display: