Skip to content

Commit 865fa41

Browse files
Steve Vermeulennejch
authored andcommitted
feat(api): support listing pipelines triggered by pipeline schedules
1 parent b6c0872 commit 865fa41

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

gitlab/v4/objects/pipelines.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
"ProjectPipelineVariableManager",
3333
"ProjectPipelineScheduleVariable",
3434
"ProjectPipelineScheduleVariableManager",
35+
"ProjectPipelineSchedulePipeline",
36+
"ProjectPipelineSchedulePipelineManager",
3537
"ProjectPipelineSchedule",
3638
"ProjectPipelineScheduleManager",
3739
"ProjectPipelineTestReport",
@@ -184,8 +186,19 @@ class ProjectPipelineScheduleVariableManager(
184186
_update_attrs = RequiredOptional(required=("key", "value"))
185187

186188

189+
class ProjectPipelineSchedulePipeline(RESTObject):
190+
pass
191+
192+
193+
class ProjectPipelineSchedulePipelineManager(ListMixin, RESTManager):
194+
_path = "/projects/{project_id}/pipeline_schedules/{pipeline_schedule_id}/pipelines"
195+
_obj_cls = ProjectPipelineSchedulePipeline
196+
_from_parent_attrs = {"project_id": "project_id", "pipeline_schedule_id": "id"}
197+
198+
187199
class ProjectPipelineSchedule(SaveMixin, ObjectDeleteMixin, RESTObject):
188200
variables: ProjectPipelineScheduleVariableManager
201+
pipelines: ProjectPipelineSchedulePipelineManager
189202

190203
@cli.register_custom_action("ProjectPipelineSchedule")
191204
@exc.on_http_error(exc.GitlabOwnershipError)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy