debian-mirror-gitlab/app/graphql/resolvers/commit_pipelines_resolver.rb

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

17 lines
415 B
Ruby
Raw Normal View History

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