Skip to content

Add bulk import for local git repositories #1

@clyons

Description

@clyons

Summary

Add a bulk import path for local git repositories.

Context

This came out of setting up a fresh VibeFocus instance against an existing local portfolio. The app already has the core fields needed for this (local_path, github_url, git stats, commit logs, buckets/states), but there was no fast path from “I have a folder full of repos” to “VibeFocus has my portfolio.”

A small local importer proved the workflow: it scanned 14 repos, created project records, inferred GitHub URLs from remotes, and synced 1,440 commits. Re-running it was idempotent, which suggests this could be productized as a general bulk-import feature.

Proposed Behavior

  • Scan a configurable directory for local git repositories.
  • Create or update projects idempotently.
  • Infer github_url from the origin remote where possible.
  • Store local_path.
  • Sync lightweight local git stats and recent commit history.
  • Work without an Anthropic API key or GitHub API auth.

Acceptance Criteria

  • make import-projects PROJECTS_DIR=/path/to/repos imports repos safely.
  • Re-running the command does not duplicate projects or commits.
  • Existing projects are updated when matched by local_path or github_url.
  • Imported projects include local path, GitHub URL when detectable, branch, last commit, dirty status, and recent commit history.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions