Commit f6f8a21e authored by Adrian DC's avatar Adrian DC
Browse files

feat(entrypoint): preserve main group description if exists

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent 85e6d918
Loading
Loading
Loading
Loading
+4 −2
Changes for src/cli/entrypoint.py: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -170,8 +170,10 @@ class Entrypoint:
                    parent_description,
                    parent_name,
                )
            if not parent_description_text or not group.description or \
                    not group.description.endswith(f'{parent_description_text}'):
            if not group.description or subgroup and ( \
                        not parent_description_text or \
                        not group.description.endswith(f'{parent_description_text}') \
                    ):
                description = f'{GitLabFeature.Helper.capitalize(group.name)}' \
                              f'{parent_description_text}'
                gitlab.group_set_description(criteria, description)