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