Loading src/cli/entrypoint.py +1 −1 Changes for src/cli/entrypoint.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -328,7 +328,7 @@ class Entrypoint: features = ', '.join( gitlab.project_reset_features( criteria, options.reset_features.split(',') if options.reset_features else [], GitLabFeature.project_features_parse(options.reset_features), )) if features: print(f'{Colors.BOLD} - Reset features: ' Loading src/features/gitlab.py +16 Changes for src/features/gitlab.py: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -193,6 +193,22 @@ class GitLabFeature: # Result return result # Project parse features @staticmethod def project_features_parse(input_string: str) -> List[str]: # Handle empty input if not input_string: return [] # Parse features from input available_features = GitLabFeature.project_features_available() return [ feature for input_feature in input_string.split(',') for feature in available_features if feature.lower().startswith(input_feature.strip().lower()) ] # Project protect tags, pylint: disable=too-many-branches def project_protect_tags(self, criteria: str, protect_level: str) -> List[str]: Loading Loading
src/cli/entrypoint.py +1 −1 Changes for src/cli/entrypoint.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -328,7 +328,7 @@ class Entrypoint: features = ', '.join( gitlab.project_reset_features( criteria, options.reset_features.split(',') if options.reset_features else [], GitLabFeature.project_features_parse(options.reset_features), )) if features: print(f'{Colors.BOLD} - Reset features: ' Loading
src/features/gitlab.py +16 Changes for src/features/gitlab.py: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -193,6 +193,22 @@ class GitLabFeature: # Result return result # Project parse features @staticmethod def project_features_parse(input_string: str) -> List[str]: # Handle empty input if not input_string: return [] # Parse features from input available_features = GitLabFeature.project_features_available() return [ feature for input_feature in input_string.split(',') for feature in available_features if feature.lower().startswith(input_feature.strip().lower()) ] # Project protect tags, pylint: disable=too-many-branches def project_protect_tags(self, criteria: str, protect_level: str) -> List[str]: Loading