Topics
Recent articles

Developer Tools

Build a GitHub Repo Dashboard That Shows What Needs Attention

Show which GitHub reviews, builds, and releases need action. Match workflow evidence to exact revisions and mark stale or missing observations.

Table of Contents9 sections
Pixel art repo card showing the main revision and passing build at 9ef21c8 while production serves 71c35de, with a next action to check deployment.
A passing build and the revision serving production are separate signals.

A repository can have twenty commits this week and still be stuck on one review. It can also have a green build while production serves last week’s version. A dashboard built around repository activity makes both situations look healthier than they are. An operational dashboard should tell you what needs attention and show enough evidence for you to trust the answer.

Quick solution: Track the change that matters, its current gate, the evidence timestamp, and the next action. Match build and deployment evidence to the specific commit and environment. Show missing or stale evidence explicitly, instead of coloring those repositories green.

Hypothetical repository card
Catalog API   •   Production behind
main: 9ef21c8  |  required build: passed on 9ef21c8
production: 71c35de  |  verified 08:55 UTC
Next: release operator checks the latest production attempt

Decide what someone should do after reading a card

A dashboard earns its place if it replaces an actual round of checking. Write down the questions that drive the work: Which review is waiting? Which default-branch build needs attention? Which release is held? Which deployed revision is serving users? Each answer should point to a review, run, release record, or verification result that someone can open. If the card cannot tell the reader what to check next, a colored badge is less useful than a link to the source.

Keep commit counts and latest activity in a secondary view. They can help somebody discover an unfamiliar repository, but unremarkable activity is not an incident, and a high count does not mean an app is ready. A small service with no changes and valid production evidence might need nothing. A repository with constant merges and a broken build could be the most important item on the screen. Rank the latter above the former for operational reasons, not because one team is supposedly doing more work.

Avoid one universal health score. A service that publishes a container, a library that publishes a package, and an app with a user rollout do not have the same endpoint. A single color can hide which stage actually succeeded. Give each repository an explicit profile with the stages you can verify. A repo that does not deploy should say not applicable, while a deployable repo whose production integration is missing should say unknown. The first is a modeling choice; the second is a gap.

Start with a scoped roster and explicit signals

For the first iteration, list a small set of repositories the team is responsible for. Pin the relevant branch, the required workflow name or ID, the trigger expected to produce the build, and the source that can report a production revision. Record the person or rotation that owns build and release follow-up. Do not use whatever workflow ran most recently as the definition of build health. A nightly lint run can be green while the artifact-producing workflow fails.

For reviews, show actionable open pull requests rather than a total alone. Mark drafts separately. Use an upcoming deadline or review waiting time only when you know what event starts that clock. A PR’s last update may reflect a bot comment, not the time a reviewer was requested. If you do not collect a reliable review-request event, label what you know, for example “open for three days,” and link to the PR instead of asserting that someone ignored it.

For each relevant signal, store the observed value, its source, its identity, when it was observed, and whether collection succeeded. Those are different from the time the underlying event happened. A stable service may have deployed weeks ago but was observed a minute ago. An old deployment time is not proof of stale monitoring. The dashboard should let the operator distinguish “quiet and recently checked” from “we have not checked this source.”

Join build evidence to the correct Git revision

Use a full SHA for comparisons and shorten it only for display. For the default-branch build, read that branch’s SHA and look for the configured workflow and trigger on that SHA. The GitHub Actions workflow-runs endpoint supports filters including event and head SHA. A passing run from a different revision, a different workflow, or a PR preview cannot validate your target branch head. If more than one applicable run exists, choose a documented selection rule and account for reruns of the chosen run. Keep the attempt and timestamps visible.

Here is a small presentation classifier for a single required workflow. The collector supplies an exact run observation, including the latest applicable attempt, and handles pagination and errors before this function runs. It deliberately does not claim to compute branch-protection or multi-workflow gate semantics.

function buildGate(targetSha, observation, now, maxAgeMs) {
  if (!observation || observation.fetch !== 'ok') return 'unknown';
  const age = now - observation.checkedAtMs;
  if (!Number.isFinite(age) || age < 0 || age > maxAgeMs) return 'stale';
  const run = observation.latestAttempt; // Configured workflow + push event.
  if (!run || run.head_sha !== targetSha) return 'no_matching_run';
  if (run.status !== 'completed') return 'waiting';
  if (run.conclusion === 'success') return 'passed';
  if (['failure', 'timed_out', 'startup_failure'].includes(run.conclusion)) {
    return 'failed';
  }
  return 'not_passed'; // Canceled, skipped, neutral, or unfamiliar result.
}

Start with an explicit success allowlist rather than treating “not failed” as green. A skipped or canceled run is different from one that passed, and a queued run is different from no matching run. Let the reader open the run to see the cause. Where a repo truly has multiple required checks, populate that policy explicitly and show the blocking check, not merely the one that finished most recently. For actual merge eligibility, go to the repository’s configured protection or merge queue rather than trusting a dashboard’s local inference.

Separate merged, deployed, and verified

A merged change can be waiting for deployment. A deployment request can be queued or rejected. A deployment marked successful may still need verification through the actual environment. GitHub’s deployment docs describe a deployment as a request associated with a ref, not as an independent confirmation that users are on that revision. For environments reported by a separate provider, use its authoritative state and link to its evidence. If no integration tells you what revision is serving, do not fill that blank from the latest workflow badge.

For a web service, an environment confirmation can be a trusted version endpoint or deployment marker checked through the production route. Make sure the signal is meant to represent the resource you claim is live. A health endpoint that merely returns OK cannot prove a particular revision. A CDN response might also represent a different revision than the provider’s intended target. A small sanity check should establish identity before it checks a critical route; this is covered in the post-deploy production sanity-check guide.

Use conservative labels based on what you verified. If main and production differ, “different revision” is always clearer than assuming a rollout failed. Only say “behind main” when the relationship is known and meaningful for that repository. A team may deploy a release tag, cherry-pick a hotfix, or intentionally hold a release branch. In those cases compare production with the explicitly approved candidate and show the release policy. An Android app can have distinct build, release, and exposure stages, so do not infer universal user exposure from a publish status.

Make uncertainty visible without making the screen useless

When a fetch fails, retain the last known value along with its observation time, but label it as last known. Bring unknown or stale signals into a separate group from verified failures. Revoked access, a pulled installation, a provider timeout, and a real CI failure need different responses. A dashboard reporting “build failed” because it could not read the Actions API creates false urgency; one reporting “build status unavailable, last known passed at 09:20” gives the operator a reasonable place to start.

Use freshness thresholds that correspond to the team’s decisions. A release-focused screen might expect updates during a deploy window and tolerate a longer interval overnight. Pick a threshold based on how the collector actually runs, not a round number applied uniformly to every field. If you move from periodic reads to webhooks, record whether the current observation came from an event or a reconciliation. Event delivery alone is not a substitute for checking the target revision after conflicting or delayed updates.

Handle partial data separately. If the review request succeeds but the deployment provider fails, keep the review state current and mark only deployment evidence unavailable. Display a card-level checked time only if its meaning is clear. One field updating should not reset the freshness clock for everything on a card. Before acting on a stale card, let the operator open the authoritative source and verify the current state there.

Keep collection cheap and access narrowly scoped

Use a backend collector so the mobile or browser UI can read a compact status snapshot without carrying credentials for private repositories. Scope the collector to the approved roster and the read permissions needed for the signals you use. Apply viewer authorization again when serving the snapshot. A precomputed snapshot can leak private repo names and work states just as easily as a direct API response if it is exposed to the wrong audience. Do not include private PR text or build logs when links and short status fields are enough.

Avoid polling every endpoint every time someone scrolls. A small shared cache and a refresh budget per source are enough for a first version. GitHub’s REST API best practices discuss event-driven collection, handling rate limits, and conditional requests when supported. If a conditional request returns not modified, retain the observed resource’s content and update the check time for that resource. If a request fails, do not advance its successful-observation time. Follow pagination where the card claims a complete count; otherwise make the bounded sample visible.

Make the first layout usable on a phone. Start with the reason something needs attention, then the repo name and one obvious evidence link. Expand for details such as full SHA, workflow attempt, deployment environment, and timestamps. Do not require the person to read columns of numbers to find a blocked release. Keep green cards collapsed or lower in the list, and use words as well as color so a stopped release is readable even without the red chip.

Test the dashboard with contradictions

Use synthetic fixtures before connecting several real repositories. Start with main at B, last successful build at A, and production at A. The expected dashboard is not “all green” and not “production broken.” It is “no passing build for B” and “production verified at A.” Then add a passing build for B without a deployment observation. Build should turn green while production remains A. If you remove access to the deploy source, the last known A should stay visible but stop looking current.

Test a canceled rerun, an unrelated nightly run, a workflow configured for the wrong branch, and a deployment observed for staging when the card claims production. Also test an intentional release hold so your UI does not page someone just because main and production differ. If the dashboard shows a single state per repository, document which of these cases takes priority and make everything else accessible in the card. The user should not have to guess which detailed signal the summary reflects.

Finally, give someone the card view without telling them how it was designed. Ask what they would open first and whether the displayed evidence is current. If they respond to a pipeline issue by opening a commit graph, the card has not made the next action clear. Make the remedy obvious before adding another metric or designing a permanent score.

Use this implementation checklist

A useful repo dashboard is a list of decisions with evidence attached. The strongest card is often the most boring one: this is the revision we expected, this is what we checked, this is when we checked it, and this is the one thing someone needs to do next.

You Might Also Like

View all articles
How to Publish an Obsidian Community Plugin in 2026
12 min read

How to Publish an Obsidian Community Plugin in 2026

A practical release checklist for getting an Obsidian plugin from a working repository into the Community directory, including manifests, GitHub releases, automated review, and updates.

Why Git Blob IDs Mismatch Your File Checksums
6 min read

Why Git Blob IDs Mismatch Your File Checksums

Understand why hashing raw file bytes produces a different value than Git and the GitHub API, explore UTF-8 byte length versus string length, and learn when to use a separate digest for application integrity.