Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle nested repos in init for GitLab #251

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lucas-zmroczek-apl
Copy link

@lucas-zmroczek-apl lucas-zmroczek-apl commented Mar 29, 2024

#93

Overview

This change allows for tested GitLab repos to be initialized. An example repos.txt file:

myorg/repo1
myorg/groupA/repo2
myorg/groupA/repo3
myorg/groupB/repo4

Before the fix, only myorg/repo1 would initialize. After the fix, all repos initialize.

Testing

Tested on GitLab, by running mp init with a repos file that contained the nested repos, as described in the example above.

# Before the fix
$ mp init --provider=gitlab --provider-url=https://gitlab.myorg.edu/ -f repos.txt
2024/03/29 16:53:01 unable determine repo from line, expected format '{org}/{repo}': myorg/groupA/repo2

# After the fix
$ ./src/microplane/bin/mp init --provider=gitlab --provider-url=https://gitlab.myorg.edu/ -f repos.txt
myorg/repo1
myorg/groupA/repo2
myorg/groupA/repo3
myorg/groupB/repo4

@lucas-zmroczek-apl lucas-zmroczek-apl requested a review from a team as a code owner March 29, 2024 20:56
@lucas-zmroczek-apl lucas-zmroczek-apl requested review from jakegut and removed request for a team March 29, 2024 20:56
@lucas-zmroczek-apl
Copy link
Author

I'm not sure how to set the JIRA ticket, but this addresses the GitHub issue #93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant