Repository navigation
17 commits since v1.3.0, changing 25 files (1,068 lines added, 155 removed).
Breaking change
--token/-tis gone. The CLI now reads the token only fromINPUT_GITHUB_TOKEN, as the GitHub Action already did. A token passed as an argument shows up in the process list and in shell history.
New features
-u/--userfor personal accounts (#74). It fetches billing data from/users/{user}/settings/billing/usage. You can't combine it with--organization, and the period options work the same way. It needs a fine-grained token with Account permissions > Plan > Read-only.- The jobs source fetches in parallel and shows progress. 8 worker threads fetch each run's jobs and print a progress line about every 5%. Results keep the run order.
Fixes
- Billing data without an organisation name. Personal account exports have no
organizationName, and parsing them used to fail. The field is now optional.--repositorymatches on the repository name alone when there is no organisation. - Pipe mode works when a token is set.
cat bill.json | aspenfailed with "Organization is required" ifINPUT_GITHUB_TOKENwas exported. Pipe mode now runs when stdin isn't a terminal and none of--file,--organizationor--repositoryis set. - Hitting the API rate limit stops the run with an error. On a 429, or a 403 with no requests left, aspen exits with a non-zero code and writes no report. The message suggests a personal access token, fewer days, or the billing source.
Documentation
- The README and website now compare the API cost and speed of the two sources. The jobs source makes one request per workflow run, plus one per 100 runs listed, and is rate limited above roughly 950 runs with the built-in token. The billing source makes one request per calendar month.
- The README documents the rate limit and explains how to load the token without exposing it.
Website (new)
- One-page site at aspen.digitalpebble.com (#45). The methodology page is built from
METHODOLOGY.md. /simulator/page (#83). It estimates energy, carbon and water from a number of Actions minutes and a runner type, with equivalents in cups of tea, car kilometres and baths. It readsresources/config.json, so it uses the same values as the estimator.- Sponsor link in the header.
Branding
- Winter, spring, summer and autumn versions of the icon. The README now points straight at the autumn SVG, which fixes the broken logo.
CI
- The Rust workflow now runs
cargo clippy --all-targets -- -D warningsandcargo fmt --check(#86). This came with the fix for themanual_is_multiple_oflint. - The Rust workflow skips changes that only touch the website, and a new
pages.ymlworkflow builds the site.
Full Changelog: v1.3.0...v1.4.0