Skip to content
Snippets Groups Projects
Commit aac297ad authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Update style as create_note

parent 68b5ded0
Branches
Tags
1 merge request!3363Implement #3243 New Issue by email
Loading
@@ -61,9 +61,12 @@ module Gitlab
Loading
@@ -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(
message_project,
message_sender,
title: message.subject, title: message.subject,
description: handle_reply(message_project)).execute 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:"
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment