Feature/create groups and projects#708
Open
MihkelKillo wants to merge 10 commits intogitlabform:mainfrom
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #708 +/- ##
==========================================
- Coverage 84.39% 80.22% -4.18%
==========================================
Files 69 69
Lines 2749 2771 +22
==========================================
- Hits 2320 2223 -97
- Misses 429 548 +119
🚀 New features to boost your workflow:
|
Contributor
Contributor
Contributor
|
@amimas , can you review please? |
kriko
approved these changes
Mar 21, 2024
Collaborator
|
Thanks for the PR. Let's finish the discussions and suggestions in the issue first. |
TimKnight-DWP
suggested changes
Apr 18, 2024
| path_elements = project.split("/") | ||
| parent_name, project_name = "/".join(path_elements[:-1]), path_elements[-1] | ||
| parent_id = self.gitlab.get_group_id_case_insensitive(parent_name) | ||
| self.gitlab.create_project( |
Member
There was a problem hiding this comment.
Should aim to use python gitlab apis rather than the existing GLF implementations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A small addition to automatically create groups, subgroups and projects.
Only usable when using target "ALL_DEFINED" and creates the elements in Gitlab when key "create_if_not_found" with value "true" is present. Doesn't affect any already existing parts when this key is not present (or is not truthy).
Solves issue #399 as proposed by user kriko