A walkthrough of building a Go CLI tool called actions-usage that calculates total GitHub Actions build minutes across an organization. The tool queries multiple GitHub APIs (repositories, workflow runs, jobs) and aggregates the data. The post covers using Google's go-github library for API integration, handling rate limits, and practical usage examples. It also touches on rapid prototyping philosophy and suggests further extensions like OAuth flows or a React UI frontend.

6m read timeFrom blog.alexellis.io
Post cover image
Table of contents
Why do we need this?The actions-usage CLIHow to get your usageFurther work

Sort: