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.
Sort: