Method: SystemNotes::IssuablesService#unrelate_issuable

Defined in:
app/services/system_notes/issuables_service.rb

#unrelate_issuable(noteable_ref) ⇒ Object

noteable_ref - Referenced noteable object

Example Note text:

"removed the relation with gitlab-foss#9001"

Returns the created Note object



49
50
51
52
53
# File 'app/services/system_notes/issuables_service.rb', line 49

def unrelate_issuable(noteable_ref)
  body = "removed the relation with #{noteable_ref.to_reference(noteable.resource_parent)}"

  create_note(NoteSummary.new(noteable, project, author, body, action: 'unrelate'))
end