Skip to content

Feature Request: Add depth to repoPaths #739

@Hidetoxin

Description

@Hidetoxin

Is your feature request related to a problem? Please describe.
At work I have to clone many repos for multiple organizations with different users hence my repo paths can be a bit messy. For dealing with that I use ghq to clone them in a single path that resembles something like below:

Image

So setting repoPaths as the below does not work because my repos are nested inside many orgs:

repoPaths:
  code/*: ~/code/*

Describe the solution you'd like
I'd like for the repoPaths setting to be able to search for nested repos. Add an option to search n depth into my organization paths. I'm thinking or some configuration that could look like this:

# For depth 1 or current behavior
repoPaths:
  code/*1: ~/code/*1

# For depth 2 or my desired behavior
repoPaths:
  code/*2: ~/code/*2

# For depth n or my desired behavior
repoPaths:
  code/*n: ~/code/*n

Describe alternatives you've considered
Set my repos under a single path or define multiple entries per organization. But this can get messy and verbose since I have multiple users and multiple orgs.

Additional context
Please let me know if there's another way to get this behavior on the current version. Maybe I missed something on the documentation.

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