octoscope 0.32.0 — which repos you actually commit to

octoscope 0.32.0 answers a question the Repos tab could not: which of your repositories do you actually commit to most?

Until now you could see your commit count for one repo at a time, in the drill-in. Fine for "how much did I do here", useless for "where does my year actually go" — that is a question about the ordering of the whole list, and you cannot answer it one row at a time.

Now there is a Commits column: commits you authored on each repo's default branch in the last 365 days, right on the Repos tab, with its own sort. Press s until the header says commits and the list reorders by it. Flip it on in the settings panel (,) and the tab refetches on the spot — or set commit_counts = true in your config.

Two tips. default_sort = "commits" makes it the sort you land on; and octoscope --json now carries commits_last_year per repo — an explicit 0 where you made none, the key absent when the column is off, so a script can tell the two apart.

The part I enjoyed getting right is why it is opt-in. GitHub counts each repo's history on request, and asked inline on the list query it pushed that query past GitHub's 10-second gateway limit three times in five on my 91-repo account. The first run passed — at 9.8 seconds — and I very nearly shipped on that one green run. So it lives in its own parallel query, pages at 50, takes 4–6 seconds, and is best-effort: a timeout costs you the column for one refresh and the header says so; it never costs you the dashboard. A zero, when the column is on, is a real zero.

One more thing the toggle does: if you flip it while a refresh is already running, the change is remembered and one more fetch follows when that one lands — so you never see a result that read the old setting on its way out.

brew upgrade gfazioli/tap/octoscope

Honest question for the people who run big accounts: would you rather a column like this stay opt-in with a cost you can see, or just be on and eat the 4–6 seconds every refresh? I went with opt-in, and I am not certain.

---

octoscope on the web:

Newsletter:

On Mastodon:

7 views

Add a comment

Replies

Be the first to comment