Skip to content

Commit

Permalink
register cli action for delete_in_bulk
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoralsky committed May 1, 2019
1 parent 340cd37 commit 0b79ce9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitlab/v4/objects.py
Expand Up @@ -1196,6 +1196,7 @@ class ProjectRegistryTagManager(DeleteMixin, RetrieveMixin, RESTManager):
_from_parent_attrs = {'project_id': 'project_id', 'repository_id': 'id'}
_path = '/projects/%(project_id)s/registry/repositories/%(repository_id)s/tags'

@cli.register_custom_action('ProjectRegistryTagManager', optional=('name_regex', 'keep_n', 'older_than'))
@exc.on_http_error(exc.GitlabDeleteError)
def delete_in_bulk(self, name_regex='.*', **kwargs):
"""Delete Tag by name or in bulk
Expand Down

0 comments on commit 0b79ce9

Please sign in to comment.