Skip to content

meta_repo

Source

Hook to create meta repo, ie a repo that has many other repos within it. See meta repo definition. Describe the repo structure with a map and when this hook is called, it allows the users to operate git commands on that repo structure.

Warning: Hook is experimental. Expect changes.

Inputs

Name Type Default Required Description
command str None False The git command to run.
repo_tree dict None False A map of repos to clone with the keys indicating the path and values for the repo targets. See examples.
protocol str https False Either https or ssh. Useful when using abbreviated repo references.
token str None False A token to use with https abbreviated repo references.
base_url str github.com False The base url to use with https abbreviated repo references.
git_org str None False The git org to override with https abbreviated repo references.

Returns

None

Examples

this:
  ->: meta_repo
  git_org: robcxyz
  repo_tree:
    services:
      thing: robcxyz/tackle-pypackage
      users: https://github.com/robcxyz/tackle-pypackage
    foo:
      bar:
        main:
          src: https://github.com/robcxyz/tackle-pypackage
        thing:
          src: https://github.com/robcxyz/tackle-pypackage
          branch: dev
        gh:
          src: tackle-pypackage
          branch: master
        gh-branch:
          src: robcxyz/tackle-pypackage
          branch: dev