Add code review suggestions
This commit is contained in:
parent
ba429a6e20
commit
23dfc5d606
1 changed files with 4 additions and 4 deletions
|
@ -262,17 +262,17 @@ module Gitlab
|
|||
def pull_request_comment_attributes(comment)
|
||||
{
|
||||
project: project,
|
||||
note: comment_note(comment),
|
||||
author_id: gitlab_user_id(project, comment.author),
|
||||
note: comment_note(comment),
|
||||
created_at: comment.created_at,
|
||||
updated_at: comment.updated_at
|
||||
}
|
||||
end
|
||||
|
||||
def comment_note(comment)
|
||||
note = ''
|
||||
note += @formatter.author_line(comment.author) unless find_user_id(comment.author)
|
||||
note + comment.note
|
||||
author = @formatter.author_line(comment.author) unless find_user_id(comment.author)
|
||||
|
||||
author.to_s + comment.note.to_s
|
||||
end
|
||||
|
||||
def log_error(details)
|
||||
|
|
Loading…
Reference in a new issue