Skip to content

Repository files navigation

DepTriage by PatchHive

DepTriage tells teams which dependency updates matter now and which ones can wait.

It is PatchHive's dependency-noise filter: a product that reads open dependency pull requests, optionally folds in Dependabot alerts, groups that activity by package, and turns the result into a ranked queue such as update now, watch, or ignore for now.

Product Documentation

Core Workflow

  • read open dependency pull requests for a target repository
  • optionally read matching Dependabot alerts
  • group overlapping pull requests and alerts by package
  • rank each package into a practical action bucket
  • save scan history so teams can compare or revisit earlier triage decisions

Run Locally

Docker

cp .env.example .env
docker compose up --build

Frontend: http://localhost:5180 Backend: http://localhost:8070

Split Backend and Frontend

cp .env.example .env
cd backend && cargo run
cd ../frontend && npm install && npm run dev

Important Configuration

VariablePurpose
BOT_GITHUB_TOKEN or GITHUB_TOKENOptional fine-grained PAT for dependency pull request and Dependabot reads. Recommended scopes: Metadata (read), Pull requests (read), Dependabot alerts (read).
DEP_TRIAGE_API_KEY_HASHOptional pre-seeded app auth hash. Otherwise generate the first local key from the UI.
DEP_TRIAGE_SERVICE_TOKEN_HASHOptional pre-seeded service-token hash for HiveCore or other PatchHive product callers.
DEP_TRIAGE_DB_PATHSQLite path for scan history.
DEP_TRIAGE_PORTBackend port for split local runs.
RUST_LOGRust logging level.

DepTriage works best with a fine-grained GitHub token. Reading pull requests is enough for the base product loop. Dependabot alert reads need the matching security permission; without that access, DepTriage still scores dependency pull requests and reports the limitation clearly.

Safety Boundary

DepTriage is intentionally read-only. It does not merge dependency pull requests, rewrite update configuration, dismiss alerts, or open follow-up issues. Its job is to turn dependency update noise into an explainable queue a human can act on.

HiveCore Fit

HiveCore can surface DepTriage health, capabilities, run history, and ranked update pressure beside the rest of the suite. DepTriage remains independently runnable; HiveCore should consume its product-owned APIs instead of reading its SQLite database.

Standalone Repository

The PatchHive monorepo is the source of truth for DepTriage development. The standalone patchhive/deptriage repository is an exported mirror of this directory.

About

Tell your team which dependency updates matter now and which ones can wait.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages