Skip to content
GitHub

GuideQuality

Branches

In the panel: Quality › Branches/quality/branchesNeeds analyses:read

List the branches worth deleting in every repository — merged, abandoned after a closed merge request, or stale — with who last committed to each, so everyone can clean up after themselves.

In the panel · Quality › Branches
BranchesAll214Merged131Closed MR22Stale61My teamsAuthor: anyAge: anyConfigureRun now
214 to clean up · 19 repositories131 merged22 closed MR61 stale · 90 days486 besides default · 38 kept for an open MR−17 since last runOldest: 1,284 days
Branch Reason Author Last commit Merge request
☐ feature/ABC-88-legacy-search · acme/admin-ui Stale Ivo P. 1,284 days · 2023-05-08 —
☑ fix/ABC-412-cart-rounding · acme/checkout-web Merged Mira K. 212 days · 2026-04-14 !318 merged
☑ spike/ABC-530-new-theme · acme/widget-kit Closed MR Tomas R. 96 days · 2026-08-08 !77 closed
☐ chore/bump-some-lib · acme/billing-api Merged Mira K. 41 days · 2026-10-02 !205 merged

Oldest first. Branches with an open merge request are never listed.

One row per branch worth deleting, from each repository’s newest branches record. The page only reports; Holtkeeper never deletes a branch.

Column Meaning
Branch The branch, linking to it on the forge, with its repository (opens the hub at Quality › Branches).
Reason Why it is worth deleting: Merged, Closed MR or Stale.
Author Who made the head commit.
Last commit Age and date of the head commit.
Merge request The branch’s merge request on the forge, with its state.

Each repository lists its oldest branches up to a fixed number; the footer counts the ones left out. Without a sort rows go oldest first, and every column sorts.

The toolbar narrows the list: the reason switch with counts, the scope switch (My teams folds other teams’ branches into one row), Author, and Age (older than 30, 90 or 365 days). The search in the header matches branch, repository or author.

The strip comes from the stored counts of the repositories in scope, not from the listed rows: branches to clean up and in how many repositories, merged, closed merge request, stale (with the threshold when every repository uses the same), branches besides the default with those kept for an open merge request, the change since each repository’s previous run, and the oldest branch.

The default branch, protected branches and branches matching the ignore list are never judged. A branch with an open merge request is in review and never listed. Of the rest, the first reason that holds wins:

  1. Merged — the branch’s head is reachable from the default branch, or its newest merged merge request points at its head. Squash and rebase merges count too.
  2. Closed MR — its newest merge request was closed without merging and the branch got no commits since.
  3. Stale — no commits for 90 days, or the repository’s own threshold.

The analyzer runs on Tuesday nights in the default branches-weekly schedule. Run now queues it at once and needs analyses:run.

The page has no delete button on purpose: each author deletes their own branches on the forge. Use the selection to build a list for them.

  1. Tick branches, click a row, or move with J / K and press ↵. The header checkbox selects every shown row.
  2. A side sheet opens. Selection lists the selected branches by repository, each linking to the forge.
  3. Click Copy list. Each line holds the repository path and the branch name, ready to paste into a chat or a script.
In the panel · Quality › Branches › Selection
2 branches selected

Select merged and closed

Clear selection

Selection2By authorSince last run
fix/ABC-412-cart-roundingacme/checkout-web · merged · Mira K.212 days
spike/ABC-530-new-themeacme/widget-kit · closed MR · Tomas R.96 days
Copy list
Copied list
acme/checkout-web fix/ABC-412-cart-rounding
acme/widget-kit spike/ABC-530-new-theme

Select merged and closed picks every merged and closed-MR branch shown; Clear selection empties it. The selection lives in the page and is not kept in the URL.

The sheet’s other two tabs work without a selection; open them from ⋯ › By author or Since last run.

  • By author sums branches to clean up per author across the repositories in scope, with each author’s oldest branch.
  • Since last run shows how every count of each repository changed against its previous run.
In the panel · Quality › Branches › By author
By author
SelectionBy authorSince last run
Author To clean up Merged Closed MR Stale Oldest
Mira K. 38 31 2 5 402 days
Ivo P. 27 9 1 17 1,284 days
Tomas R. 14 8 4 2 96 days

Configure opens the analyzers.branches setting:

Option Default Meaning
staleDays 90 Days without commits after which a branch is stale.
ignore none Globs of branch names never reported, such as release/*.
includeProtected off Judge protected branches too.
analyzers.branches · one team
{
"staleDays": 60,
"ignore": ["release/*", "demo/*"]
}

The repository hub’s Quality › Branches shows the same table narrowed to that repository.