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

remote_mirror.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18d51726baba8c61647280f6734b4f63777bd875 (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 API
  module Entities
    class RemoteMirror < Grape::Entity
      expose :id
      expose :enabled
      expose :safe_url, as: :url
      expose :update_status
      expose :last_update_at
      expose :last_update_started_at
      expose :last_successful_update_at
      expose :last_error
      expose :only_protected_branches
      expose :keep_divergent_refs, if: -> (mirror, _options) do
        ::Feature.enabled?(:keep_divergent_refs, mirror.project)
      end
    end
  end
end