Welcome to mirror list, hosted at ThFree Co, Russian Federation.

branch_rules_resolver.rb « projects « resolvers « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6c8b416bcea6c3fd41fd518c4c737665b0185ead (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Resolvers
  module Projects
    class BranchRulesResolver < BaseResolver
      type Types::Projects::BranchRuleType.connection_type, null: false

      alias_method :project, :object

      def resolve(**args)
        project.protected_branches
      end
    end
  end
end