Skip to content

Commit a807068

Browse files
committed
feat(GitLab Update): delete ProjectPipeline
As of Gitlab 11.6 it is now possible to delete a pipeline - https://docs.gitlab.com/ee/api/pipelines.html#delete-a-pipeline
1 parent bc973d4 commit a807068

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gitlab/v4/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,7 @@ class ProjectPipelineJobManager(ListMixin, RESTManager):
27142714
_list_filters = ('scope',)
27152715

27162716

2717-
class ProjectPipeline(RESTObject, RefreshMixin):
2717+
class ProjectPipeline(RESTObject, RefreshMixin, ObjectDeleteMixin):
27182718
_managers = (('jobs', 'ProjectPipelineJobManager'), )
27192719

27202720
@cli.register_custom_action('ProjectPipeline')
@@ -2748,7 +2748,7 @@ def retry(self, **kwargs):
27482748
self.manager.gitlab.http_post(path)
27492749

27502750

2751-
class ProjectPipelineManager(RetrieveMixin, CreateMixin, RESTManager):
2751+
class ProjectPipelineManager(RetrieveMixin, CreateMixin, DeleteMixin, RESTManager):
27522752
_path = '/projects/%(project_id)s/pipelines'
27532753
_obj_cls = ProjectPipeline
27542754
_from_parent_attrs = {'project_id': 'id'}

0 commit comments

Comments
 (0)