gitlab-org--gitlab-foss/app/models/system_note_metadata.rb
Ryan Scott 7e3d34595c Changes based on MR feedback.
Marking an issue as a duplicate will now also add an upvote on behalf of the author on the original issue.
2017-07-20 15:33:24 +01:00

13 lines
387 B
Ruby

class SystemNoteMetadata < ActiveRecord::Base
ICON_TYPES = %w[
commit description merge confidential visible label assignee cross_reference
title time_tracking branch milestone discussion task moved
opened closed merged duplicate
outdated
].freeze
validates :note, presence: true
validates :action, inclusion: ICON_TYPES, allow_nil: true
belongs_to :note
end