14 lines
279 B
Ruby
14 lines
279 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
module Resolvers
|
||
|
class CommitPipelinesResolver < BaseResolver
|
||
|
include ::ResolvesPipelines
|
||
|
|
||
|
alias_method :commit, :object
|
||
|
|
||
|
def resolve(**args)
|
||
|
resolve_pipelines(commit.project, args.merge!({ sha: commit.sha }))
|
||
|
end
|
||
|
end
|
||
|
end
|