debian-mirror-gitlab/app/graphql/resolvers/projects/branch_rules_resolver.rb
2022-10-11 01:57:18 +05:30

15 lines
311 B
Ruby

# 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