debian-mirror-gitlab/app/graphql/resolvers/commit_pipelines_resolver.rb
2021-01-30 21:13:34 +05:30

16 lines
415 B
Ruby

# frozen_string_literal: true
# rubocop: disable Graphql/ResolverType
module Resolvers
class CommitPipelinesResolver < BaseResolver
# The GraphQL type here gets defined in this include
include ::ResolvesPipelines
alias_method :commit, :object
def resolve(**args)
resolve_pipelines(commit.project, args.merge!({ sha: commit.sha }))
end
end
end
# rubocop: enable Graphql/ResolverType