Repository health

Repository health shows how far your repositories are with the tooling standards you agreed on: continuous integration, dependency updates, secret scanning, a code-quality scan and branch protection. Open it from Teams → Repository health. Every figure counts only the repositories a check applies to, so it reads "13 of 15 repositories with code" and never "13 of everything".

Not to be confused with the Repository health area of the health score, which is about ownership: repositories that rest on one person or have nobody active. This page is about tooling.

repository-health-01-page

Which repositories count

Every connected repository gets a lifecycle, so a weak figure cannot be waved away with "those repositories are dead anyway". Only active ones count.

LifecycleMeaning
ActiveA commit or a merged merge request within the period you set (six months by default)
DormantNothing since then
EmptyNo default branch, or no commits on it
SandboxThe name or path matches one of your sandbox patterns, for example poc-
ArchivedArchived on the git host

Under the figures the page says how many repositories were left out, so the denominator is never silently small.

The checks

CheckSet upRunning
CI presentA CI configuration on the default branchA pipeline in the last 30 days
Dependency updatesRenovate or Dependabot configurationA bot merge request in the last 180 days, none left open over 90 days
Secret scanningA secret scanner referenced in CIIts job ran on the default branch in the last 30 days
Code-quality scanSonar or another scanner, in configuration or in CIA scan in the last 30 days
Branch protectionThe default branch protected with review required—

The facts behind them are read from your git host's API on the default branch, every few hours. Nothing is cloned and no code is read.

What a repository can be

StateMeaning
AdoptedSet up and running
Set up, not runningConfigured, but nothing shows it runs. The reason says what is missing, for example "Configuration only, no scan in CI"
Not yetNot set up — or done with another tool than the shared one you named, which counts as covered, not adopted
Not applicableThe check does not apply: no code, no dependency manifest, no application code. Left out of the denominator
CI outside the git hostThe CI lives elsewhere (a Jenkinsfile, for instance), so whether it runs cannot be seen. Reported apart and left out of the denominator

Reading the page

  • The tiles: one per check with its adoption, what it counts ("8 of 16 active repositories"), the change since last week, and how many repositories are set up but not running.
  • All checks: the share of applicable checks adopted over every active repository, as one number.
  • Adoption per week: a line per check. A week in which you changed what counts is marked, so a jump in the line is explained.
  • By team: teams against checks, counted over the repositories each team lists.
  • Set up, not adopted: why a check is configured but does not run, with the repositories behind each reason.
  • Repositories: one row per repository with its lifecycle and a state per check. Open one for the evidence: the file that configures a check, the last pipeline, the last bot merge request.

Use Scope at the top to read the whole organisation or one team, and Read now to fetch the repositories again instead of waiting for the next run.

A tile per check with its adoption and the change since last week

repository-health-04-teams

One repository with its lifecycle, every check and the evidence behind it

Setting the standard

Under Settings → Repositories an admin sets which repositories count and which checks run:

  • Active within: how many months of silence make a repository dormant.
  • Sandbox patterns: one per line; a repository whose path or name contains one is a sandbox and is left out.
  • Checks: switch off a check your organisation does not want to be measured on.
  • Shared variant: name the one tool that counts as adopted — a CI component path, an action or a preset. A repository that does the same thing with another tool is then reported as covered, not adopted, which is what makes a standard a standard.

The same tab lists every connected repository with its lifecycle, the rule that set it and when it was last read. Changes count from the next reading.

Where repository health is used

  • The Teams page, for the whole organisation and per team.
  • The assistant in the app and in Slack answers questions about which repositories miss a check.

Repository health is part of the Scale-Up and Enterprise plans.