issuable_base_service.rb 911 字节
Newer Older
1 2 3 4
class IssuableBaseService < BaseService
  private

  def create_assignee_note(issuable)
5
    SystemNoteService.change_assignee(
6 7 8 9
      issuable, issuable.project, current_user, issuable.assignee)
  end

  def create_milestone_note(issuable)
10
    SystemNoteService.change_milestone(
11 12
      issuable, issuable.project, current_user, issuable.milestone)
  end
N
Nikita Verkhovin 已提交
13 14

  def create_labels_note(issuable, added_labels, removed_labels)
15
    SystemNoteService.change_label(
N
Nikita Verkhovin 已提交
16 17
      issuable, issuable.project, current_user, added_labels, removed_labels)
  end
18 19 20 21 22

  def create_title_change_note(issuable, old_title)
    SystemNoteService.change_title(
      issuable, issuable.project, current_user, old_title)
  end
23 24 25 26 27 28

  def create_branch_change_note(issuable, branch_type, old_branch, new_branch)
    SystemNoteService.change_branch(
      issuable, issuable.project, current_user, branch_type,
      old_branch, new_branch)
  end
29
end