GitHub

GitHub ci runs in the MacBook notch

The ten most recent GitHub Actions runs, newest first, as a feed rather than a count.

A feed, not a number

Unlike every other GitHub widget, this one is a list. The same ten runs appear whatever window the widget is set to, because what you want from it is what just happened rather than how many things happened this week.

That is why it carries no sparkline and no comparison against the previous period. A chart of the last ten runs would be a chart of an arbitrary ten.

It refreshes faster than everything else

Most metrics in the notch are fetched on a schedule measured in minutes, because MRR does not change between glances. A CI run does.

This one holds its answer for a minute rather than the quarter of an hour a daily figure would, because it is the one number here you read in order to decide whether to go and look at something. Being fifteen minutes behind on a failing build defeats the point entirely.

Private repositories

Private repositories work here, alongside public ones.

GitHub has no read-only permission for private repositories on an OAuth app. The only scope that reaches one is repo, and GitHub describes it as full control. Your consent screen says so.

Notch Metrics only ever reads. It runs no write against your repositories. Your token is encrypted per connection, and a token copied between accounts does not decrypt.

If that grant is wider than you want, a custom metric takes a token scoped to one repository, and that token stays in your own Keychain.

Picking a repository and a branch

The widget asks which repository, in owner/name form, and optionally which branch. One GitHub connection covers as many repositories as you place widgets for.

Filtering to a branch is usually what you want on a busy repository. Unfiltered, ten runs on a project with active pull requests is ten runs from ten different branches, and your own main build is rarely among them.

What GitHub ci runs means, exactly

The ten most recent GitHub Actions runs, newest first. Private repositories included, for the account this connection signed in as.

A whole number.

How the widget behaves

Buckets
hourly, daily, weekly and monthly
Shape
A figure, with no sparkline
Against last period
No
Fetched from
api.github.com

What the widget asks you for

Repository
Which repository this tile counts.
owner/name
Branch
Leave empty for every branch.
main

Questions

How is GitHub ci runs calculated?
The ten most recent GitHub Actions runs, newest first. Private repositories included, for the account this connection signed in as. Notch Metrics reports that number, unchanged, in the MacBook notch.
Can I see GitHub ci runs over time?
GitHub ci runs is a snapshot of right now, so the widget shows the figure without a sparkline. The windows it accepts are 24 hours, 7, 30 and 90 days, and 12 months.
What unit is GitHub ci runs in?
A whole number.
What does it cost to put GitHub ci runs in the notch?
$9 a month, or $49 a year, with every connector included and no per-integration charge. The seven-day trial needs no card, so you can see your own ci runs before deciding.