debian-mirror-gitlab/app/graphql/resolvers/projects/branch_rules_resolver.rb

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

16 lines
311 B
Ruby
Raw Normal View History

2022-10-11 01:57:18 +05:30
# 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