mass_driver.process_repo

Per-repo processing of activities.

Given a single repo, process SINGLE “activity” (clone OR migrate OR scan OR forge).

Module Contents

Functions

clone_repo

Clone a repo (if needed) and switch branch

migrate_repo

Process a repo with Mass Driver

scan_repo

Apply all Scanners on a single repo

forge_per_repo

Process a single repo

API

mass_driver.process_repo.clone_repo(repo: mass_driver.models.repository.SourcedRepo, cache_path: pathlib.Path, logger: logging.Logger) tuple[mass_driver.models.repository.ClonedRepo, mass_driver.git.GitRepo][source]

Clone a repo (if needed) and switch branch

mass_driver.process_repo.migrate_repo(cloned_repo: mass_driver.models.repository.ClonedRepo, repo_gitobj: mass_driver.git.GitRepo, migration: mass_driver.models.migration.MigrationLoaded, logger: logging.Logger) tuple[mass_driver.models.patchdriver.PatchResult, Exception | None][source]

Process a repo with Mass Driver

mass_driver.process_repo.scan_repo(config: mass_driver.models.scan.ScanLoaded, cloned_repo: mass_driver.models.repository.ClonedRepo) mass_driver.models.activity.ScanResult[source]

Apply all Scanners on a single repo

mass_driver.process_repo.forge_per_repo(config: mass_driver.models.migration.ForgeLoaded, repo: mass_driver.models.repository.ClonedRepo) mass_driver.models.forge.PRResult[source]

Process a single repo