FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(GitLab Update): delete ProjectPipeline (#736) · python-gitlab/python-gitlab@768ce19 · GitHub

Repository navigation

Commit 768ce19

Browse files
authored andcommitted
feat(GitLab Update): delete ProjectPipeline (#736)
* 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 6bd1902 commit 768ce19

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎gitlab/v4/objects.py‎

Lines changed: 3 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,8 @@ 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,
2752+
RESTManager):
27522753
_path = '/projects/%(project_id)s/pipelines'
27532754
_obj_cls = ProjectPipeline
27542755
_from_parent_attrs = {'project_id': 'id'}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL