Commit aac297ad authored by Lin Jen-Shin's avatar Lin Jen-Shin

Update style as create_note

parent 68b5ded0
...@@ -61,9 +61,12 @@ module Gitlab ...@@ -61,9 +61,12 @@ module Gitlab
def process_create_issue def process_create_issue
validate_permission(message_sender, message_project, :create_issue) validate_permission(message_sender, message_project, :create_issue)
issue = Issues::CreateService.new(message_project, message_sender, issue = Issues::CreateService.new(
title: message.subject, message_project,
description: handle_reply(message_project)).execute message_sender,
title: message.subject,
description: handle_reply(message_project)
).execute
unless issue.persisted? unless issue.persisted?
msg = "The issue could not be created for the following reasons:" msg = "The issue could not be created for the following reasons:"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment