summaryrefslogtreecommitdiff
path: root/app/graphql/resolvers/projects/branches_tipping_at_commit_resolver.rb
blob: 7e2661f3f7728f0187847477bfb903fc44c56a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Resolvers
  module Projects
    class BranchesTippingAtCommitResolver < RefTippingAtCommitResolver
      MAX_LIMIT = 100

      calls_gitaly!

      type ::Types::Projects::CommitParentNamesType, null: true

      # the methode ref_prefix is implemented
      # because this class is prepending Resolver::CommitParentNamesResolver module
      # through it's parent ::Resolvers::RefTippingAtCommitResolver
      def ref_prefix
        Gitlab::Git::BRANCH_REF_PREFIX
      end
    end
  end
end