2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
2021-01-29 00:20:46 +05:30
|
|
|
# rubocop: disable Graphql/ResolverType
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
module Resolvers
|
|
|
|
class CommitPipelinesResolver < BaseResolver
|
2021-01-29 00:20:46 +05:30
|
|
|
# The GraphQL type here gets defined in this include
|
2019-12-26 22:10:19 +05:30
|
|
|
include ::ResolvesPipelines
|
|
|
|
|
|
|
|
alias_method :commit, :object
|
|
|
|
|
|
|
|
def resolve(**args)
|
|
|
|
resolve_pipelines(commit.project, args.merge!({ sha: commit.sha }))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2021-01-29 00:20:46 +05:30
|
|
|
# rubocop: enable Graphql/ResolverType
|