internal/

directory
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: MIT

Directories

Path Synopsis
Package cache persists GitHub Actions run timings and other API responses to disk and memory so repeated TUI and CLI invocations avoid refetching.
Package cache persists GitHub Actions run timings and other API responses to disk and memory so repeated TUI and CLI invocations avoid refetching.
Package cli implements gh-sweep's Cobra command tree: flag parsing, config resolution, and dispatch into the TUI or CLI list mode for each subcommand.
Package cli implements gh-sweep's Cobra command tree: flag parsing, config resolution, and dispatch into the TUI or CLI list mode for each subcommand.
Package config loads gh-sweep's flag-default config (.gh-sweep.yaml) and its declarative policy config (.gh-sweep-policy.yaml).
Package config loads gh-sweep's flag-default config (.gh-sweep.yaml) and its declarative policy config (.gh-sweep-policy.yaml).
Package dns resolves domains to check GitHub Pages custom-domain configuration against what's actually live.
Package dns resolves domains to check GitHub Pages custom-domain configuration against what's actually live.
Package git wraps local git CLI operations (branch listing, comparison, deletion) used to enrich data fetched from the GitHub API.
Package git wraps local git CLI operations (branch listing, comparison, deletion) used to enrich data fetched from the GitHub API.
Package github wraps the GitHub REST and GraphQL APIs used by gh-sweep.
Package github wraps the GitHub REST and GraphQL APIs used by gh-sweep.
Package models holds the domain types shared across gh-sweep's CLI and TUI: repository references and the branch tree used to render ancestry.
Package models holds the domain types shared across gh-sweep's CLI and TUI: repository references and the branch tree used to render ancestry.
Package orphans classifies stale git branches by whether their pull request was merged, closed, or never opened, so gh-sweep can flag them for cleanup.
Package orphans classifies stale git branches by whether their pull request was merged, closed, or never opened, so gh-sweep can flag them for cleanup.
Package pages audits GitHub Pages custom domains against live DNS in both directions: repos whose configured domain no longer resolves to Pages (or resolves to Pages while Pages itself is disabled, a takeover risk), and configured domains with no live Pages site behind them.
Package pages audits GitHub Pages custom domains against live DNS in both directions: repos whose configured domain no longer resolves to Pages (or resolves to Pages while Pages itself is disabled, a takeover risk), and configured domains with no live Pages site behind them.
Package policy diffs a config.PolicyConfig's declared repository state against live GitHub repos and applies it.
Package policy diffs a config.PolicyConfig's declared repository state against live GitHub repos and applies it.
tui
Package tui implements the top-level Bubble Tea application: the home menu and navigation between each view's sub-model.
Package tui implements the top-level Bubble Tea application: the home menu and navigation between each view's sub-model.
components/analytics
Package analytics is the TUI view for CI/CD workflow-run statistics: an overview tab, flaky-test detection, and extracted failure errors.
Package analytics is the TUI view for CI/CD workflow-run statistics: an overview tab, flaky-test detection, and extracted failure errors.
components/branches
Package branches is the TUI view for reviewing local and remote git branches and deleting the ones that are safe to remove.
Package branches is the TUI view for reviewing local and remote git branches and deleting the ones that are safe to remove.
components/collaborators
Package collaborators is the TUI view that audits repository collaborators and their permission levels, grouped either by repository or by user.
Package collaborators is the TUI view that audits repository collaborators and their permission levels, grouped either by repository or by user.
components/comments
Package comments is the TUI view for reviewing PR review threads across a repository, filterable to unresolved threads only.
Package comments is the TUI view for reviewing PR review threads across a repository, filterable to unresolved threads only.
components/ghaperf
Package ghaperf is the TUI view for GitHub Actions run-timing data: an overview, per-workflow and per-job durations, and branch-vs-baseline comparisons.
Package ghaperf is the TUI view for GitHub Actions run-timing data: an overview, per-workflow and per-job durations, and branch-vs-baseline comparisons.
components/orphans
Package orphans is the TUI view for auditing and deleting orphaned branches across a GitHub namespace.
Package orphans is the TUI view for auditing and deleting orphaned branches across a GitHub namespace.
components/policy
Package policy is the TUI view for the gh-sweep policy command: it shows drift between a config.PolicyConfig and live repos, and applies it on demand.
Package policy is the TUI view for the gh-sweep policy command: it shows drift between a config.PolicyConfig and live repos, and applies it on demand.
components/protection
Package protection is the TUI view that compares branch protection rules across repositories against a baseline repo.
Package protection is the TUI view that compares branch protection rules across repositories against a baseline repo.
components/releases
Package releases is the TUI view that overviews repository releases: the latest per repo, the full history, and which repos have gone stale.
Package releases is the TUI view that overviews repository releases: the latest per repo, the full history, and which repos have gone stale.
components/secrets
Package secrets is the TUI view that audits organization and repository secrets and flags ones that appear unused.
Package secrets is the TUI view that audits organization and repository secrets and flags ones that appear unused.
components/settings
Package settings is the TUI view that compares repository settings against a baseline repo and reports the fields that drifted.
Package settings is the TUI view that compares repository settings against a baseline repo and reports the fields that drifted.
components/watching
Package watching is the TUI view for auditing and changing GitHub repository watch/notification status.
Package watching is the TUI view for auditing and changing GitHub repository watch/notification status.
components/webhooks
Package webhooks is the TUI view that lists repository webhooks and their recent delivery health.
Package webhooks is the TUI view that lists repository webhooks and their recent delivery health.
scroll
Package scroll computes the visible line window for a cursor-navigable list rendered inside a fixed-height terminal viewport, so a namespace scan or cross-repo list that outgrows the screen scrolls instead of clipping silently or pushing the footer off-screen.
Package scroll computes the visible line window for a cursor-navigable list rendered inside a fixed-height terminal viewport, so a namespace scan or cross-repo list that outgrows the screen scrolls instead of clipping silently or pushing the footer off-screen.
theme
Package theme holds the palette gh-sweep's views draw from, resolved once per command and read through Current for the rest of the run.
Package theme holds the palette gh-sweep's views draw from, resolved once per command and read through Current for the rest of the run.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL