debian-mirror-gitlab/app/graphql/resolvers/project_pipeline_schedules_resolver.rb
2022-11-25 23:54:43 +05:30

17 lines
497 B
Ruby

# frozen_string_literal: true
module Resolvers
class ProjectPipelineSchedulesResolver < BaseResolver
alias_method :project, :object
type ::Types::Ci::PipelineScheduleType.connection_type, null: true
argument :status, ::Types::Ci::PipelineScheduleStatusEnum,
required: false,
description: 'Filter pipeline schedules by active status.'
def resolve(status: nil)
::Ci::PipelineSchedulesFinder.new(project).execute(scope: status)
end
end
end