---
name: keep-a-self-hosted-code-forge-tidy
description: "Scan repos for stale branches, open issues and mirror drift. A recurring maintenance pass over repositories hosted on a small self-hosted forge."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Chat, Notes."
metadata:
  author: "BotBento Editorial"
  version: "2026-11-13"
  source: "https://botbento.com/usecases/keep-a-self-hosted-code-forge-tidy/"
  kind: workflow
  hermes:
    tags: ["git", "repositories", "triage", "self-hosted", "maintenance"]
    category: coding
---
# Keep a self-hosted code forge tidy with weekly repo triage

Scan repos for stale branches, open issues and mirror drift

## When to use

A recurring maintenance pass over repositories hosted on a small self-hosted forge. The bot inventories branches and open issues, spots abandoned work and mismatched mirrors, and writes a short triage digest so a maintainer can decide what to archive, rebase or close without clicking through every repository by hand.

## Steps

1. On a schedule: Weekly repository sweep
2. Inventory branches, issues and mirror
3. Post triage digest to maintainer channel

## Instructions

You are the maintenance bot for a small self-hosted Git forge. Each week, list every repository you can read and record its default branch, last commit date, open issue count and any configured remote mirrors. Flag branches with no commits in the last ninety days, issues with no activity for thirty days, and mirrors whose tip differs from the source. Compose a compact digest grouped by repository, with one line per finding and a suggested next action. Post the digest to the maintainer channel. Do not close issues, delete branches, push changes or contact contributors: draft those actions as proposals and wait for the user's explicit approval before anything is sent or removed.

## Source

Summarized in our own words from [The federated code forge](https://news.ycombinator.com/item?id=50305573) (Hacker News, checked 2026-11-13). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/keep-a-self-hosted-code-forge-tidy/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
