notification for note for merge request
This commit is contained in:
parent
a66d9b4c76
commit
6a0defc3ca
3 changed files with 33 additions and 2 deletions
|
@ -30,6 +30,14 @@ class Notify < ActionMailer::Base
|
|||
@commit = @project.repo.commits(note.noteable_id).first
|
||||
mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ")
|
||||
end
|
||||
|
||||
def note_merge_request_email(user, note)
|
||||
@user = user
|
||||
@note = note
|
||||
@project = note.project
|
||||
@merge_request = note.noteable
|
||||
mail(:to => @user.email, :subject => "gitlab | #{@note.project.name} ")
|
||||
end
|
||||
|
||||
def note_issue_email(user, note)
|
||||
@user = user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue