Alert commit author on note

Allows to alert only the commit author when a new note is added on a commit, useful when gitlabhq is used for code
reviews, allows less noise with mails...
This commit is contained in:
Cedric Gatay 2011-12-24 17:28:20 +01:00
parent 89a43543e9
commit c0b47d3245
5 changed files with 13 additions and 2 deletions

View file

@ -13,6 +13,7 @@ class NotesController < ApplicationController
@note = @project.notes.new(params[:note])
@note.author = current_user
@note.notify = true if params[:notify] == '1'
@note.notify_author = true if params[:notify_author] == '1'
@note.save
respond_to do |format|