Member Junction
    Preparing search index...
    • Downloads migration files from a GitHub repository to a local temp directory.

      Parameters

      • repoUrl: string

        GitHub repository URL (may include an in-repo subpath for multi-app repos)

      • version: string

        Tag/version to download from

      • migrationsPath: string

        Path within the repo (or app subpath) to the migrations directory (e.g., 'migrations/')

      • localDir: string

        Local directory to save the files to

      • options: GitHubClientOptions

        GitHub client options

      • Optionalsubpath: string

        Optional in-repo directory the app lives under. When set, the migrations directory is resolved relative to it (<subpath>/<migrationsPath>).

      Returns Promise<MigrationDownloadResult>

      Download result with file list or error details