Skip to main content

gha route

Overview

Uses the repo-inventory.yaml to match PRDs or feature descriptions against repositories based on signals like integrations, tech stack, and purpose. Helpful for deciding which repo should own a new feature.

Usage

python -m src.cli route [OPTIONS]

Options

OptionDescriptionDefault
-p, --prd PATHPath to PRD file to route--
-t, --text TEXTFeature description text to route--
--list-reposList all repositories in inventory--
--include-archivedInclude archived repos in resultsExcluded
-c, --config PATHPath to repo-inventory.yamlAuto-detected
--format {console,json}Output formatconsole

Prerequisites

  • Repo: github-automator
  • Install: pip install -r requirements.txt from repo root
  • Config: config/repo-inventory.yaml must exist

Examples

Route a PRD to the best-fit repo

python -m src.cli route --prd docs/prd-new-feature.md

Route a feature description

python -m src.cli route --text "Add GHL webhook handler for contact sync"

List all repos in the inventory

python -m src.cli route --list-repos