gitlab-org--gitlab-foss/app/models/generic_commit_status.rb

16 lines
273 B
Ruby
Raw Normal View History

2015-10-06 06:01:16 -04:00
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