Commit 6ad179f7e4dbd05861e281cc0a790ebf36043a3d
1 parent
1d87b77c
Exists in
master
and in
25 other branches
Added GitlabGroupImport in data_importer.py
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com> Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
colab/plugins/gitlab/data_importer.py
... | ... | @@ -150,6 +150,14 @@ class GitlabProjectImporter(GitlabDataImporter): |
150 | 150 | datum.save() |
151 | 151 | |
152 | 152 | |
153 | +class GitlabGroupImport(GitlabDataImporter): | |
154 | + def fetch_data(self): | |
155 | + LOGGER.info("Importing Group") | |
156 | + groups_list = self.fetch_groups() | |
157 | + for datum in groups_list: | |
158 | + datum.save() | |
159 | + | |
160 | + | |
153 | 161 | class GitlabMergeRequestImporter(GitlabDataImporter): |
154 | 162 | |
155 | 163 | def fetch_data(self): | ... | ... |