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

generic_commit_status.rb « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa54e3540d07bd99637c76b65d7b53ba4acc58c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class GenericCommitStatus < CommitStatus
  before_validation :set_default_values

  # GitHub compatible API
  alias_attribute :context, :name

  def set_default_values
    self.context ||= 'default'
    self.stage ||= 'external'
  end

  def tags
    [:external]
  end
end