summaryrefslogtreecommitdiff
path: root/app/models/generic_commit_status.rb
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