gitlab-org--gitlab-foss/app/graphql/resolvers/project_pipeline_schedules_resolver.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
497 B
Ruby
Raw Normal View History

# 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