Method: SystemNotes::IssuablesService#mark_canonical_issue_of_duplicate
- Defined in:
- app/services/system_notes/issuables_service.rb
#mark_canonical_issue_of_duplicate(duplicate_issue) ⇒ Object
Called when a Noteable has been marked as the canonical Issue of a duplicate
duplicate_issue - Issue that was a duplicate of this
Example Note text:
"marked #1234 as a duplicate of this issue"
"marked other_project#5678 as a duplicate of this issue"
Returns the created Note object
419 420 421 422 |
# File 'app/services/system_notes/issuables_service.rb', line 419 def mark_canonical_issue_of_duplicate(duplicate_issue) body = "marked #{duplicate_issue.to_reference(project)} as a duplicate of this issue" create_note(NoteSummary.new(noteable, project, , body, action: 'duplicate')) end |