summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/config/entry/only_policy.rb
blob: 9a581b8e97efc6f2d2f1aa759f6c17707b742a3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Gitlab
  module Ci
    class Config
      module Entry
        ##
        # Entry that represents an only/except trigger policy for the job.
        #
        class OnlyPolicy < Policy
          def self.default
            { refs: %w[branches tags] }
          end
        end
      end
    end
  end
end