lib/gitlab/client/pipeline_schedules.rb in gitlab-5.0.0 vs lib/gitlab/client/pipeline_schedules.rb in gitlab-5.1.0

- old
+ new

@@ -28,9 +28,21 @@ # @return [Gitlab::ObjectifiedHash] def pipeline_schedule(project, id) get("/projects/#{url_encode project}/pipeline_schedules/#{id}") end + # Get all pipelines triggered by a pipeline schedule + # + # @example + # Gitlab.pipelines_by_pipeline_schedule(5, 3) + # + # @param [Integer, String] project The ID or name of a project. + # @param [Integer] id The ID of the pipeline schedule. + # @return [Array<Gitlab::ObjectifiedHash>] + def pipelines_by_pipeline_schedule(project, id) + get("/projects/#{url_encode project}/pipeline_schedules/#{id}/pipelines") + end + # Create a pipeline schedule. # # @example # Gitlab.create_pipeline_schedule(5, { description: 'example' }) #